Forum Discussion
cathyPB
6 years agoFrequent Visitor
IF statement with Calculated Measure
I would like to create a new measure with some value like this: IF Before today: CALCULATE( SUM('DataMart'[ACTUAL]), FILTER( ALLSELECTED('DIM_DATE'[DAY_DATE]), ISONORAFTER('DIM_DATE'[DA...
- Anonymous6 years ago
cathyPB - Does this measure work?:
Your Measure 2 = var _Date_As_Of = MAX('Dim_Date'[Day_Date]) return CALCULATE( SUM('DataMart'[ACTUAL]), FILTER( ALL('Dim_Date'), AND(_Date_As_Of < TODAY(), 'Dim_Date'[Day_Date] <= _Date_As_Of) ) )
cathyPB
6 years agoFrequent Visitor
Not yet, it only return one value as the point in the chart