Forum Discussion
IF statement with Calculated Measure
- 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 - Check whether this Measure works:
Your Measure =
CALCULATE(
SUM('DataMart'[ACTUAL]),
FILTER(
'Dim_Date',
'Dim_Date'[Day_Date] < TODAY()
)
)
I also appreciate Kudos.
Thanks for reply, but I would like to get accumulative sum result as following:
CALCULATE(
SUM('DataMart'[ACTUAL]),
FILTER(
ALLSELECTED('DIM_DATE'[DAY_DATE]),
ISONORAFTER('DIM_DATE'[DAY_DATE], max(DIM_DATE[DAY_DATE]), DESC)))
- Anonymous6 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) ) )- cathyPB6 years agoFrequent Visitor
Not yet, it only return one value as the point in the chart
- Anonymous6 years agoNot applicable
cathyPB - Could you please mock up what you are looking for and provide a screenshot of what is currently happening?
- Anonymous6 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.