Forum Discussion
parallelperiod vs previousmonth vs adddate
- 10 years ago
Hi SHDJason,
In DAX, PARALLELPERIOD always returns full periods at the given granularity level instead of the partial periods that DATEADD returns. So please check if the dates in date column are continuous. If the dates in the current context do not form a contiguous interval, the function returns an error.
Reference:
PARALLELPERIOD Function (DAX)Regards,
Hi SamiTi,
Thanks for replying. I don't really understand what you suggest me to try though, sorry.
Here's a screenshot of what my report looks like until now.
I don't want to have to apply a filter myself because my intention is to publish this report in the Power BI service and other users will daily consult it. So it has to calculate last month sales itself without my intervention.
Thanks again
Ben
Hi Ben
Add a slicer with month year in order for measure to return Previous month value.
User will need to select Month from Slicer.
- Anonymous8 years agoNot applicable
It works !!!!!!!!
I have been traveling on blogs since 3 days now...
Thank you so much !!!!