Forum Discussion
Anonymous
4 years agoNot applicable
Calculating Same Period Last Month !!!
Hi Geniuses,
I have created a measure to calculate MTD sales of my product category now I want to calculate sales of same premiod last month to compare. My Dax formula is returning the same result as current month MTD.
PREMIUN SPLM = CALCULATE([MTD PREMIUM Sales],
DATESBETWEEN('Calendar'[Date],DATE(YEAR( TODAY() ), MONTH( TODAY() )-1, 01), TODAY()-30 )
)
Can you please help me how I can fix this?
Can you please help me how I can fix this?
7 Replies
- Tanushree_Kapse
Impactful Individual
Hi Anonymous ,
Try this measure:
PREMIUN SPLM=
CALCULATE([MTD PREMIUM Sales],PREVIOUSMONTH(DATESMTD('Calendar'[Date])))Mark this as a solution if I answered your question.Kudos are always appreciated.Thanks- AnonymousNot applicable
Hi Tanushree_Kapse,
It didn't work either. Returned the same value as current month.
Thanks
- AnonymousNot applicable
Hi selimovd,
Can you help me on this issue?
Here is my PBI file: https://we.tl/t-X49Va7dzNP
Thanks- selimovd
Most Valuable Professional
Hey Anonymous ,
is that still ongoing or could you solve the issue?
If it's still unsolved you have to upload the file again as it expired.
Best regards
Denis
- AnonymousNot applicable