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!
New to power bi - I'm wanting to edit the stacked column chart pictured below to do as title says.
For example, the column 3051-3700m is labeled with 27 for Drilling & MIR and 185 for Down. These numbers are calculated measures of number of records for records of these statuses (Drilling & MIR or Down). Instead, I'd like them to be labeled with the perent of total.. so 13% for Drilling & MIR (27/(27+185)) and 87% for Down (185/(27+185)).
Thanks!
Solved! Go to Solution.
In this scenario, you can create another measure to show the percent of total. I assume you have a dataset as below. You can use following formula to create a new measure (Please modify the table and column name according to your actual dataset).
Perent of Total = DIVIDE ( [Total_Amount], CALCULATE ( SUM ( Table1[Amount] ), ALLEXCEPT ( Table1, Table1[Range] ) ) )
Best Regards,
Herbert
@v-haibl-msft @mickyg7 @andyspa @PedroSimao00
Is it also posible to add the procent and the exact value.
I would like to add the percent of the total and the values that are already in the graphic
kind regards Luca
In this scenario, you can create another measure to show the percent of total. I assume you have a dataset as below. You can use following formula to create a new measure (Please modify the table and column name according to your actual dataset).
Perent of Total = DIVIDE ( [Total_Amount], CALCULATE ( SUM ( Table1[Amount] ), ALLEXCEPT ( Table1, Table1[Range] ) ) )
Best Regards,
Herbert
You Can use 100% chart top right.
In the divide function, how is [Total_amount] the numerator. The numerator for the percentage should be the individual values
Hi,
What is supposed to go in "[range]" part of this formula?
ALLEXCEPT ( Table1, Table1[Range] )
Why did you create the formula with "ALLEXCEPT"?
Thanks @v-haibl-msft, I have one question, what is the difference between this solution and the 100% stacked column?
The way I have done this is to create new measures that do the divide separately, and gets the % you are looking for, and then add them as a tooltip.
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |