Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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 for 10/01/2016 through 10/31/2016. I want to compare current and previous MTD for the same date period.
PMYTD = TOTALMTD(SUM(PrimaryTrades[GrossAmountOffer]),DATEADD(DATESMTD(PrimaryTrades[TradeDate]),-1,MONTH))
Thanks
Solved! Go to Solution.
Add a calendar table and build relationship.
Measure = TOTALMTD ( SUM ( PrimaryTrades[GrossAmountOffer] ), DATEADD ( DATESMTD ( 'Calendar'[Date] ), -1, YEAR ) )
Add a calendar table and build relationship.
Measure = TOTALMTD ( SUM ( PrimaryTrades[GrossAmountOffer] ), DATEADD ( DATESMTD ( 'Calendar'[Date] ), -1, YEAR ) )
Hi,
Try this
=CALCULATE(SUM(PrimaryTrades[GrossAmountOffer]),DATESBETWEEN(PrimaryTrades[TradeDate],EOMONTH(TODAY(),-12)+1,EDATE(TODAY(),-12)))
Hope this helps.
User | Count |
---|---|
102 | |
92 | |
85 | |
78 | |
71 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |