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) ) )
Anonymous
6 years agoNot applicable
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)
)
)
Anonymous
6 years agoNot applicable
Hello,
I am also having a similar issue. I am looking to do something like this. IF week = 1 and timesheet issue = missing then missing if week = 1 and timesheet = good then sum actual hours. I want the results to populate in the same column. Any suggestions?
- Anonymous6 years agoNot applicable
Anonymous - Please post a new thread, and refer to this blog post for guidance.