Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Yagevendra
Helper IV
Helper IV

Donut chart proportion on measure

Hi All,
Client requirement is to create donut chart and its looks like this

Yagevendra_0-1644247258483.png

 



Data we are using here something like that
BROADCASTER, SERIES, CONTENT, CHANNEL, DEVICE_TYPE_ID, LEVEL, ALLCOCATED-PEOPLE, CF-SELECTED-PEOPLE

42072493207249311942TOTAL10
42072493207249311942SERIES10
42072493207249311942SERIES10
42072493207249311942SERIES30
42072493207249311942BROADCASTER30
42072493207249311942SERIES30
42072493207249311942BROADCASTER10
42060294206029411942DEVICE21
42060294206029411942TOTAL51
11649569164956911541DEVICE11
11649569164956911541BROADCASTER10
11649569164956911541TOTAL20
11649569164956911541CHANNEL11
11649569164956911541SERIES105



But the problem we are facing is to show proportion on a donut chart based on filter selection

Yagevendra_1-1644247258491.png

 


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.

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@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]  )

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

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.

View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@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]  )

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

 

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.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.