The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I'm new user in powerbi and need help. Table named techniquee and has 3 columns in power bi. First column is Integer. How can I calculate the difference of each technique compared to the previous year? Result should be in Difference columns name.
Year | Technique | Value | Difference(result column) |
2000 | Agile | 0 | 0 |
2000 | Devops | 2 | 0 |
2001 | Agile | 10 | 10 |
2001 | Devops | 15 | 13 |
2002 | Agile | 50 | 40 |
2002 | Devops | 80 | 65 |
Solved! Go to Solution.
try like:
DifferenceColumn =
VAR _valuepre =
MAXX(
FILTER(
Technique,
Technique[Technique]=EARLIER(Technique[Technique])&&Technique[Year]<EARLIER(Technique[Year])
),
Technique[Value]
)
RETURN
[Value] - _valuepre