Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hola
Estoy tratando de aplicar una segmentación de datos a través de un objeto visual que respeta este filtro DAX
S/d acumulado á calculate('Checkin-Chekout'[Tipe]),
filter(all('Checkin-Chekout'),
'Checkin-Chekout'[Fecha .] <'max('Checkin-Chekout'[Fecha .])))
Solved! Go to Solution.
@V-pazhen-msftesto sólo funciona cuando elijo un hotel para filtrar, no lo que cuenta todo. Sin embargo, usted ha resuelto aquí en otro hilo mío con el mismo problema que dupliqué involuntariamente.
Pero todavía estoy inentrenado en cómo el DAX que escribiste en este hilo real se adaptaría para mostrar el recuento de agujeros y no como lo hace en la línea azul
¡Muchas gracias!
@juanmac, no lo obtuve completamente. Pero es mejor moverte Fecha a la mesa de fecha y tener ese filtro allí
S/d acumulado á calculate([Tipe],
filter(all('Date'),
'Date'[Fecha .] <max('Date'[Fecha .])))
Para obtener lo mejor de la función de inteligencia de tiempo. Asegúrese de que tiene un calendario de fechas y se ha marcado como la fecha en la vista de modelo. Además, únase a él con la columna de fecha de su hecho/s. Consulte:
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Gracias por la respuesta, pero todavía no me conviene.
He creado la tabla de acuerdo con los tutoriales que me diste, y el DAX ahora es así:
Acumulado s/d á CALCULATE(count('Chekin Checkout'[Type]),
filter(all('Chekin Checkout'), 'Chekin Checkout'[Type] ? "Checkout" ),
filtro (todos(Fechas), Fechas[Fecha] < á max(Fechas[Fecha])))
@juanmac
Intente agregar otro filtro de hotel al dax, algo así como:
Acumulated s/d = CALCULATE(count('Chekin Checkout'[Type]),
filter(all('Chekin Checkout'), 'Chekin Checkout'[Type] = "Checkout" ),
filter (all(Dates), Dates[Date] <= max(Dates[Date])),
Filter(all(Chekin Checkout),sumx(filter(Chekin Checkout,earlier(Chekin Checkout[hotel])=Chekin Checkout[hotel]),1))
Equipo de Apoyo Comunitario Paul Zheng _
Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
@V-pazhen-msftesto sólo funciona cuando elijo un hotel para filtrar, no lo que cuenta todo. Sin embargo, usted ha resuelto aquí en otro hilo mío con el mismo problema que dupliqué involuntariamente.
Pero todavía estoy inentrenado en cómo el DAX que escribiste en este hilo real se adaptaría para mostrar el recuento de agujeros y no como lo hace en la línea azul
¡Muchas gracias!