Forum Discussion
CJANE
Helper I
9 years agoCurrent and Previous MTD Calculation
Hello: Any recommendations from the community on how I can update the expression below so prior year MTD only includes 10/01/2016 through 10/16/2016. Currently the measure is returning the sum f...
- 9 years ago
Add a calendar table and build relationship.
Measure = TOTALMTD ( SUM ( PrimaryTrades[GrossAmountOffer] ), DATEADD ( DATESMTD ( 'Calendar'[Date] ), -1, YEAR ) )
Ashish_Mathur
Super User
9 years agoHi,
Try this
=CALCULATE(SUM(PrimaryTrades[GrossAmountOffer]),DATESBETWEEN(PrimaryTrades[TradeDate],EOMONTH(TODAY(),-12)+1,EDATE(TODAY(),-12)))
Hope this helps.