Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi All,
Client requirement is to create donut chart and its looks like this
Data we are using here something like that
BROADCASTER, SERIES, CONTENT, CHANNEL, DEVICE_TYPE_ID, LEVEL, ALLCOCATED-PEOPLE, CF-SELECTED-PEOPLE
4 | 2072493 | 2072493 | 1194 | 2 | TOTAL | 1 | 0 |
4 | 2072493 | 2072493 | 1194 | 2 | SERIES | 1 | 0 |
4 | 2072493 | 2072493 | 1194 | 2 | SERIES | 1 | 0 |
4 | 2072493 | 2072493 | 1194 | 2 | SERIES | 3 | 0 |
4 | 2072493 | 2072493 | 1194 | 2 | BROADCASTER | 3 | 0 |
4 | 2072493 | 2072493 | 1194 | 2 | SERIES | 3 | 0 |
4 | 2072493 | 2072493 | 1194 | 2 | BROADCASTER | 1 | 0 |
4 | 2060294 | 2060294 | 1194 | 2 | DEVICE | 2 | 1 |
4 | 2060294 | 2060294 | 1194 | 2 | TOTAL | 5 | 1 |
1 | 1649569 | 1649569 | 1154 | 1 | DEVICE | 1 | 1 |
1 | 1649569 | 1649569 | 1154 | 1 | BROADCASTER | 1 | 0 |
1 | 1649569 | 1649569 | 1154 | 1 | TOTAL | 2 | 0 |
1 | 1649569 | 1649569 | 1154 | 1 | CHANNEL | 1 | 1 |
1 | 1649569 | 1649569 | 1154 | 1 | SERIES | 10 | 5 |
But the problem we are facing is to show proportion on a donut chart based on filter selection
If user select broadcaster in a level then blue is fine for chart, if user select any broadcaster then it should split into 2-part blue part should show selected broadcaster. And rest show unselected values mean (Broadcaster 1 is holding 10% of value it will show in blue bar and rest 90% show in gray bar).
I Created measure to calculate Percentage:
Measure = DIVIDE(
SUM('optimisation[CF-SELECTED-PEOPLE]),
SUM('optimisation[ALLCOCATED-PEOPLE]))
Need help to resolved it if possible.
Solved! Go to Solution.
@Yagevendra this is how you can achieve it, you need to create a few measures and use both % measures in the donut chart.
Sum Selected = SUM ( Table1[Selected] )
Sum Selected = SUM ( Table1[Selected] )
Sum Selected Unselected = CALCULATE ( [Sum Selected], ALL ( Table1 ) ) - [Sum Selected]
Sum Allocated Unselected = CALCULATE ( [Sum Allocated], ALL ( Table1 ) ) - [Sum Allocated]
Selected % = DIVIDE ( [Sum Selected], [Sum Allocated] )
Unselected % = DIVIDE ( [Sum Selected Unselected], [Sum Allocated Unselected] )
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
@Yagevendra this is how you can achieve it, you need to create a few measures and use both % measures in the donut chart.
Sum Selected = SUM ( Table1[Selected] )
Sum Selected = SUM ( Table1[Selected] )
Sum Selected Unselected = CALCULATE ( [Sum Selected], ALL ( Table1 ) ) - [Sum Selected]
Sum Allocated Unselected = CALCULATE ( [Sum Allocated], ALL ( Table1 ) ) - [Sum Allocated]
Selected % = DIVIDE ( [Sum Selected], [Sum Allocated] )
Unselected % = DIVIDE ( [Sum Selected Unselected], [Sum Allocated Unselected] )
Learn about conditional formatting at Microsoft Reactor
My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡ Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.