cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Conditionally Pick Column for Legend in Pie Chart

I have requirement to show single pie chart by depending on parameter. As an example we need to show number employees by County or City in single pie chart and selecting by "City" or "Country" should be user defined parameter (example: slicer). 

 

Is there way to implement this in Power BI Desktop?

 

Thanks in advance..

--TM

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper V
Helper V

Re: Conditionally Pick Column for Legend in Pie Chart

Have you tried adding both City and County to the Legend and utilizing the Drill down feature, rather than a slicer?

View solution in original post

6 REPLIES 6
Highlighted
Community Champion
Community Champion

Re: Conditionally Pick Column for Legend in Pie Chart

@thusharam In power bi desktop you can use slicer visual to implement this. 

 

Capture.PNG

Highlighted
Helper V
Helper V

Re: Conditionally Pick Column for Legend in Pie Chart

Have you tried adding both City and County to the Legend and utilizing the Drill down feature, rather than a slicer?

View solution in original post

Highlighted
New Member

Re: Conditionally Pick Column for Legend in Pie Chart

Yes we tried slicer, but in order to capture selection that user do at slicer, we need to use measure. But we cannot move measure to legend value. 

If you have any other way of doing it using slicer, please let me know some detail on how we can accomplish that.

 

Thanks

Thushara M.

Highlighted
New Member

Re: Conditionally Pick Column for Legend in Pie Chart

Yes it works. Only small cocern is user has no clue that there is drill down feature, since it is just a small icon. 

Highlighted
Helper V
Helper V

Re: Conditionally Pick Column for Legend in Pie Chart

Roughly, how many values do you typically have for County?  That will help me better understand the design challenge.

Highlighted
Frequent Visitor

Re: Conditionally Pick Column for Legend in Pie Chart

Exactly looking for solution on this issue

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors