This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have a spreadsheet that lists client check-in and check-out dates. What I'd like to be able to do is report on the number of clients that were staying on a given day.
What's a good way to be able to generate a value (that I could report individually or graph over time) that would report the number of guests we had staying with us on those days?
Solved! Go to Solution.
Hi @petehorsch ,
You can try below formula:
mount =
VAR sel =
SELECTEDVALUE ( 'Date'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[Start_date] <= sel
&& 'Table'[Leave_date] >= sel
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @petehorsch ,
You can try below formula:
mount =
VAR sel =
SELECTEDVALUE ( 'Date'[Date] )
RETURN
CALCULATE (
COUNTROWS ( 'Table' ),
'Table'[Start_date] <= sel
&& 'Table'[Leave_date] >= sel
)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
How do I create the 'Date'[Date} value you reference?
Hi @petehorsch,
You can use:
Count = CALCULATE(DISTINCTCOUNT('Table'[Guest]),FILTER('Table','Table'[Check In Date]<='Date'[Date]&&'Table'[Check Out Date]>='Date'[Date]))
Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 24 | |
| 23 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 35 | |
| 30 | |
| 23 | |
| 22 |