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.
Tengo una hoja de cálculo que enumera las fechas de check-in y check-out del cliente. Lo que me gustaría poder hacer es informar sobre el número de clientes que se alojaban en un día determinado.
¿Cuál es una buena manera de poder generar un valor (que podría informar individualmente o graficar a lo largo del tiempo) que informaría el número de huéspedes que nos alojamos con nosotros en esos días?
Puedes probar la siguiente fórmula:
mount =
VAR sel =
SELECTEDVALUE ( 'Date'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[Start_date] <= sel
&& 'Table'[Leave_date] >= sel
)
Si el problema aún no se resuelve, proporcione información detallada sobre el error y hágamelo saber de inmediato. Esperamos su respuesta.
Saludos
Henrio
Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.
¿Cómo creo el valor 'Date'[Date} al que hace referencia?
Puede utilizar:
Count = CALCULATE(DISTINCTCOUNT('Table'[Guest]),FILTER('Table','Table'[Check In Date]<='Date'[Date]&&'Table'[Check Out Date]>='Date'[Date]))
¿Funciona para ti? ¡Marque esta publicación como una solución si lo hace!
Consulte este blog mío: Cómo exportar datos de telemetría de Azure IoT Central a Power BI
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.