Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have a measure that calculates the cumulative leavers based on a slicer.
I need to same measure, but to calculate based on the previous month,
Code below.
Any help appreciated.
Thanks,
Brian
Cumulative Leavers = COUNTAX( FILTER ( 'Employee Table', ( 'Employee Table'[Leaving Date]>= MINX(ALL('Calendar'[Date]),'Calendar'[Date])) && 'Employee Table'[Leaving Date] <= MAX ( 'Calendar'[Date] ) ) , 'Employee Table'[ID] )
Solved! Go to Solution.
You may try to change it as follows.
&& 'Employee Table'[Leaving Date] < STARTOFMONTH ( 'Calendar'[Date] )
You may try to change it as follows.
&& 'Employee Table'[Leaving Date] < STARTOFMONTH ( 'Calendar'[Date] )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
100 | |
100 | |
80 | |
77 | |
66 |
User | Count |
---|---|
134 | |
106 | |
104 | |
85 | |
73 |