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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
hi,
I am trying to find a formula for "Test Result" column, which should be like "Wanted Result" column
Attached is the screenshot and PBIX file.
I have the formula so far like
https://drive.google.com/file/d/1L-5bHbdlweGYaQFwSuFZqWO_wWmfbMFx/view?usp=sharing
https://drive.google.com/file/d/1SimBnxRbvKi00USgHYVngRHRM0s9Lr02/view?usp=sharing
Will appreciate help in fixing it, so "Test Result" is exactly same results as "Wanted Results" ?
thank you in advance
Solved! Go to Solution.
@Anonymous
Not sure if I have it right, I get different results than your wanted result for some lines but I think it is what you are looking for.
Result =
VAR _Line = Test[Line#]
VAR _Ver = Test[Version#]
RETURN
CALCULATE (
SUM ( Test[Value] ),
ALLEXCEPT ( Test, Test[Category] ),
Test[Line#] = _Line,
Test[Version#] < _Ver
)
If this solves your issues please mark it as the solution so that others can find it easily. Kudos 👍 are nice too.
John
@Anonymous
Not sure if I have it right, I get different results than your wanted result for some lines but I think it is what you are looking for.
Result =
VAR _Line = Test[Line#]
VAR _Ver = Test[Version#]
RETURN
CALCULATE (
SUM ( Test[Value] ),
ALLEXCEPT ( Test, Test[Category] ),
Test[Line#] = _Line,
Test[Version#] < _Ver
)
If this solves your issues please mark it as the solution so that others can find it easily. Kudos 👍 are nice too.
John
Thank you JDBuchanan.
You Rock !
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 53 | |
| 40 | |
| 17 | |
| 16 |
| User | Count |
|---|---|
| 116 | |
| 105 | |
| 41 | |
| 34 | |
| 25 |