Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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
User | Count |
---|---|
64 | |
59 | |
47 | |
33 | |
32 |
User | Count |
---|---|
84 | |
75 | |
56 | |
50 | |
44 |