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.
Hallo,
Could you please help me with a simple measure to calculate the percentage of each fraction, as it in the last column?
Solved! Go to Solution.
Hi, @TatyDo
You may use the following measure.
Result =
DIVIDE(
SUM('Table'[Value]),
CALCULATE(
SUM('Table'[Value]),
ALLSELECTED('Table')
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Assuming Value is a measure that you have written, try this measure
=[Value]/CALCULATE([Value],ALL(Data[ID]))
Hope this helps.
Hi, @TatyDo
Based on my research, you may create a measure as follows.
Result =
DIVIDE(
SUM('Table'[Value]),
CALCULATE(
SUM('Table'[Value]),
ALL('Table')
)
)
or
Result2 =
SUMX(
'Table',
DIVIDE(
'Table'[Value],
CALCULATE(
SUM('Table'[Value]),
ALL('Table')
)
)
)
Then you may make the measure selected, go to 'Modeling' ribbon, click '%' and set 'Decimal places' as 0.
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your answer.
The only problem I am having is that the value is not responding to the filters. You can see below what I mean.
Hi, @TatyDo
You may use the following measure.
Result =
DIVIDE(
SUM('Table'[Value]),
CALCULATE(
SUM('Table'[Value]),
ALLSELECTED('Table')
)
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you! 🙂
Try like
divide(sum(table[Value]),calculate(sum(table[Value]),all(Table)))
The above is for a Table visualization.
If you need a column in a table:
Column = DIVIDE([Value],SUMX('Table',[Value]),0)
In the Values area, click the drop down and then Show As and then Percent of ...
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 |
---|---|
107 | |
100 | |
80 | |
63 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |