Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I have a years dimension table and I want to calculate a KPI wich is the difference between the value of an another KPI value in a year minus its value the year before:
KPI2 = KPI1(YearN) - KPI(YearN-1)
Any help how to do it?
Thank you
Solved! Go to Solution.
Hello @Wattar ,
You may use Time Intelligence DAX for this: PARALLELPERIOD or DATEADD
KPI 2 =
VAR KPI1 = [measure]
VAR KPI1PrevYear =
CALCULATE([measure], PARALLELPERIOD([date],-1,"Year"))
VAR Diff = KPI1 - KPI1PrevYear
RETURN
Diff
Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
Hello @Wattar ,
You may use Time Intelligence DAX for this: PARALLELPERIOD or DATEADD
KPI 2 =
VAR KPI1 = [measure]
VAR KPI1PrevYear =
CALCULATE([measure], PARALLELPERIOD([date],-1,"Year"))
VAR Diff = KPI1 - KPI1PrevYear
RETURN
Diff
Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |