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

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.

Reply
moliveira-GA
Frequent Visitor

Change chart categories based on slicer

Hello guys 

 

Please, I need your help to solve a little issue.

 

I want to show a pie chart with categories dependent on a slicer. So, I have this measure "real_netrevenue" that demonstrate the total net revenue, and a table with two columns "Vertical" and "BU". In the pane I have a slicer with the "vertical" data. So, when there is not a filter applied by the slicer, I want to show the real_netrevenue by "vertical", and when I select one of the verticals in the slicer, I want to show those BU's and it's values that are associated to the vertical as demonstrated by the imagens below. Is it possible?

 

With no slicer selected:

 

moliveiraGA_0-1685551930477.png

 

With one vertical selected in slicer:

 

moliveiraGA_1-1685551989567.png

 

thanks in advance!

 

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @moliveira-GA ,

 

If there are not too many slicer values and they are single-selected, you can consider using bookmarks, with the disadvantage that this case is limited to the number of slicer combinations.

 

The other is to create field parameters for [Vertical] and [BU] and drag them to the Legend field of the pie chart. The disadvantage of this method is that there is a Legend slicer and you need to switch it manually.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
moliveira-GA
Frequent Visitor

Hello, Gao, 

 

It was a paliative solution (the bookmarks option), but it worked for that moment.

 

thanks for your help!

moliveira-GA
Frequent Visitor

Hello Gao, 

 

thanks for your help. I'm gonna try the bookmark solution. 

 

I've tried the field parameters, but the "extra" slicer that becomes necessary is really anoying in this case 😅.

v-cgao-msft
Community Support
Community Support

Hi @moliveira-GA ,

 

If there are not too many slicer values and they are single-selected, you can consider using bookmarks, with the disadvantage that this case is limited to the number of slicer combinations.

 

The other is to create field parameters for [Vertical] and [BU] and drag them to the Legend field of the pie chart. The disadvantage of this method is that there is a Legend slicer and you need to switch it manually.

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors