Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
I'm Trying to create a DoD and DoD % Change KPI, to go along with my YoY KPI and YoY change. I was able to create a Decade column on my date table using the following DAX code (if someone has a better one do share)
LYNationWideRatio = CALCULATE([NationWideHomePriceRatio], SAMEPERIODLASTYEAR(DateDimension[Date]))
%YoYNationWideRatio = DIVIDE([DiffNationWideRatio], [LYNationWideRatio], 0)
Solved! Go to Solution.
Hi Arnabi,
To calculate DoD we can use datesbetween in a calculate function. Here is how I would approach this:
My test data:
I created the decade column the same way you made it:
For DoD calculation I used the following DAX:
Hopefully this helps and if it does consider accepting this as a solution!
Proud to be a Super User!
Hi Arnabi,
To calculate DoD we can use datesbetween in a calculate function. Here is how I would approach this:
My test data:
I created the decade column the same way you made it:
For DoD calculation I used the following DAX:
Hopefully this helps and if it does consider accepting this as a solution!
Proud to be a Super User!
I greatly appreciate it...it worked beautifully