Forum Discussion
My Current Month -2 REV expression return wrong value ?
Hi All
Below expression is working fine for YTD amount :-
_YTD_REV = CALCULATE(CALCULATE(GL[AMOUNT],DATESYTD('Date'[Date],"12/31")), GL[1_REV] = "REV")
Below expression is also working fine for QTD amount :-
Below expression is to return Last month Rev amount , is not working , because it return wrong value :-
2 Replies
- v-xiaotangCommunity Support
Hi admin11
Thanks for reaching out to us.
1. The period your measure returns is :
2. if you want to put SUM statement in a measure, then nest it into another, you can try this,
sum = SUM ( GL[AMT] ) * -1Current month -2 REV = VAR _Start = EOMONTH ( TODAY (), -3 ) +1 VAR _End = EOMONTH ( _Start, 0 ) RETURN CALCULATE( [sum],DATESBETWEEN ('Date'[date], _Start, _End ), GL[1_REV] = "REV" )result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
- v-xiaotangCommunity Support
Hi admin11
Hope you are doing well.
Can we close this thread now if there is no other question? It would be nice if you can accpet my answer as the solution. Thanks 🙂Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.