Forum Discussion
brinky
Helper IV
7 years ago12 months prior rolling year
Hi, I have cretaed this measure wihich is RYR (ie July 2018 till June 2019) Any idea how I could get the 12 months prior July 2018 (ie.July 2017 till June 2018) RYR =
CALCULATE(
Grouped[GR...
- 7 years ago
Ashish_Mathur Your measure didn't work but with some adjustments I manged to get it working. Thanks to your idea I was able to get the correct measure.
RYR = CALCULATE( Grouped[GRP T QTY], DATESINPERIOD(dDate[Date], MAX(dDate[Date]), -1,YEAR ) )12M Prior RYR =CALCULATE(Grouped[RYR],SAMEPERIODLASTYEAR(dDate[Date]))
Ashish_Mathur
Super User
7 years agoHi,
Try this measure
RYR = CALCULATE([GRP T QTY],DATESYTD(dDate[Date],"30/6"))
RYR Previous = CALCULATE([RYR],SAMEPERIODLASTYEAR(dDate[Date]))
Hope this helps.
brinky
Helper IV
7 years agoAshish_Mathur Your measure didn't work but with some adjustments I manged to get it working. Thanks to your idea I was able to get the correct measure.
RYR =
CALCULATE(
Grouped[GRP T QTY],
DATESINPERIOD(dDate[Date],
MAX(dDate[Date]),
-1,YEAR
)
)12M Prior RYR =CALCULATE(Grouped[RYR],SAMEPERIODLASTYEAR(dDate[Date]))
- Ashish_Mathur7 years ago
Super User
You are welcome.