Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

date filtering

I am trying to figure out why the formula below fail to calculate number of employees leaving the organization during the past 12 months. The formula seems to stop working sometime in 2020. The rolli...
  • amitchandak's avatar
    5 years ago

    Anonymous , Try like 

     

    CALCULATE (
    CALCULATE (
    	COUNTROWS ( Headcount ),
    	USERELATIONSHIP ( 'Calendar'[Date], Headcount[Exit Date] ),
    	NOT ISBLANK ( Headcount[Exit Date] )),,DATESINPERIOD('Calendar'[Date ],MAX('Calendar'[Date ]),-12,MONTH))