Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi, I have student accommodation and need to count the number of students who have left a location based on their end date.
What measure would show this figure as 5, please?
| Location | Student | Moved_On_Date |
| Bristol | 1 | 01/04/2024 |
| Bristol | 2 | 01/04/2024 |
| Bristol | 3 | 11/04/2024 |
| Bristol | 4 | |
| Bristol | 5 | |
| London | 6 | 01/05/2024 |
| London | 7 | 01/08/2024 |
| London | 8 | |
| London | 9 |
Thanks
Solved! Go to Solution.
@RichOB , use
DAX
StudentsLeft =
CALCULATE(
COUNTROWS('YourTableName'),
NOT(ISBLANK('YourTableName'[Moved_On_Date]))
)
Proud to be a Super User! |
|
Hi @RichOB
You can use the same approach
StudentsLeftCount =
CALCULATE(
COUNTROWS('YourTableName'), //
NOT(ISBLANK('YourTableName'[Moved_On_Date]))
)
@RichOB , use
DAX
StudentsLeft =
CALCULATE(
COUNTROWS('YourTableName'),
NOT(ISBLANK('YourTableName'[Moved_On_Date]))
)
Proud to be a Super User! |
|
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |