Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.