Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I have simple calculation, that I thought would work with filtering, but I can't get it to work. My data:
I thought that my formula for result fieldwould work when slicing with groups but it doesn't.
Result = (Table1[Value] / sum(Table1[Value]) * Table1[X])
Correct results calculated with excel are -13.333 for group A and -35.5556 for group B. I assume that my sum functions doesn't work in filtering but how do I write this that weight part is only calculated for grouped part?
Solved! Go to Solution.
Hi @viitama,
Please try this measure:
Result = SUMX ( Table1, CALCULATE ( MAX ( Table1[Value] ) / CALCULATE ( SUM ( Table1[Value] ), ALLEXCEPT ( Table1, Table1[Group] ) ) * MAX ( Table1[X] ) ) )
Best regards,
Yuliana Gu
Hi @viitama,
Please try this measure:
Result = SUMX ( Table1, CALCULATE ( MAX ( Table1[Value] ) / CALCULATE ( SUM ( Table1[Value] ), ALLEXCEPT ( Table1, Table1[Group] ) ) * MAX ( Table1[X] ) ) )
Best regards,
Yuliana Gu
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
77 | |
68 | |
54 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |