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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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