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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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! |
|