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.
Hi, I would like to have this pivot table where the "difference" is calculated as the difference between (value year)- (value prevoious year)
So like: value 2023-2022, 2022-2021, 2021-2020
How ca I do?
(I also would like to order the table with descending years if possible)
Solved! Go to Solution.
@valeBonini7 , Create a calculated column for the previous year's value:
PreviousYearValue =
CALCULATE(
SUM('YourTable'[Value]),
FILTER(
'YourTable',
'YourTable'[Year] = EARLIER('YourTable'[Year]) - 1
)
)
One more for difference
Difference = 'YourTable'[Value] - 'YourTable'[PreviousYearValue]
Proud to be a Super User! |
|
@valeBonini7 , Create a calculated column for the previous year's value:
PreviousYearValue =
CALCULATE(
SUM('YourTable'[Value]),
FILTER(
'YourTable',
'YourTable'[Year] = EARLIER('YourTable'[Year]) - 1
)
)
One more for difference
Difference = 'YourTable'[Value] - 'YourTable'[PreviousYearValue]
Proud to be a Super User! |
|
User | Count |
---|---|
117 | |
73 | |
58 | |
49 | |
48 |
User | Count |
---|---|
171 | |
122 | |
60 | |
59 | |
56 |