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,
Yes i do have a calendar table. I tried using that and the date column in the data table. Both worked, but only for parallelperiod.
Is it possible that PowerBI caches the data and then does not always refresh? Sometimes, if I create a formula incorrectly then correct it, the new calculated values do not load. But if I refresh the dataset, they do load. I'm wondering if it is a cache issue.
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,
- SamiTi8 years agoFrequent Visitor
Hi,
Above measure and functions are all working well as mentioned.
However i cant see the Previousmonth sales BY category/store/product division all i get is "blank".
screenshot