Forum Discussion

CarlBlunck's avatar
CarlBlunck
Icon for Resolver I rankResolver I
3 years ago

ALL not working

Hello,

 

I'm trying to calculate something and I don't want this value to be changed when a specific filter is applied.  I've taken and applied the advice written in this Understanding DAX Auto-Exist - SQLBI blog, but still not having any luck.  Here is the measure:

 

TrendingHeadcount = 
VAR EOM = MAX(dim_PlacementDates[Date])
VAR SOM = MIN(dim_PlacementDates[Date])

RETURN

CALCULATE(DISTINCTCOUNT(fact_PlacementData[WamiKey]),
FILTER(fact_PlacementData,
(fact_PlacementData[HireDate]<= EOM && fact_PlacementData[TerminationDate]>=SOM) || 
(fact_PlacementData[HireDate]<= EOM && fact_PlacementData[TerminationDate]=BLANK())
),
ALL(dim_TerminationReasons[TerminationReasonDesc])
) 

 

Here is a snippet of the model where the 3 tables that are referenced in this formula are used:

 

Any ideas?

Thanks

Carl

2 Replies