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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Calculation of a total for measures seems to be extensively commented, however I can not solve my issue.
There is following table:
where:
I understand that this way Total of "Wartosc jednostek" (104318) = Max of wycena (592) * Sum of "Running ilosc jednostek" (176), but this is not what I expect.
How can I calculate Total value to be arround 33k?
Solved! Go to Solution.
Hi, @Tomek1982
You can try the following methods.
Measure =
IF (
HASONEVALUE ( Table1[Column1] ),
[Wartość jednostek],
SUMX ( Table1, [Wartość jednostek] )
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Tomek1982
You can try the following methods.
Measure =
IF (
HASONEVALUE ( Table1[Column1] ),
[Wartość jednostek],
SUMX ( Table1, [Wartość jednostek] )
)
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Tomek1982 ,
You need to make a different calculation at total level.
Try something like this:
If (isinscope('Table1'[Column1], // unique value at line level
MAX('Table1'[wycena]) * 'Table2'[Running ilosc jednostek],
calculate (total level)
)The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 38 | |
| 36 | |
| 30 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |