Forum Discussion
Incorrect period over period change when using dateadd
Hi,
I'm trying to calculate the change between different periods (weeks, months, etc.) which are selected by the user with a field parameter. I noticed I get some strange results when I try to use dateadd to calculate last week's results when the week is around the new year / end of the prior year. Since parallelperiod only works for Months and longer, what could I do to overcome this problem?
Code:
2 Replies
- Greg_Deckler
Community Champion
GijsBI You may find this helpful - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000
Also, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.
https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TITHW/m-p/434008 - GijsBI
Helper II
Hi,
Unfortunately, this does not help me with my problem.