Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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! |
|
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
64 | |
60 | |
51 | |
36 | |
36 |
User | Count |
---|---|
81 | |
72 | |
58 | |
45 | |
44 |