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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
khitish
Frequent Visitor

How to create conditional graphs in power BI

My requirement is to generate multiple graphs dynamically. For example, every time I filter a data in a slicer, for each item, a separate bar graph/pie chart should get generated.
So once a user selects 2 values in a slicer. There will be 2 graphs plotted on the dashboard. Again, if the user selects 3 additional values in the slicer, there should be 3 additional graphs generated. All total 5 graphs should get displayed on the dashboard.
Is this possible in power BI? Please suggest some ideas.
9 REPLIES 9
bullius
Helper V
Helper V

It is not using a slicer, but the new selection/bookmarks pane might provide the functionality you need. As mentioned, there is no way to add a visual out of nothing by clicking on a slicer, but there are ways of hiding visuals that already exist.

 

Check this out for help: https://docs.microsoft.com/en-us/power-bi/desktop-bookmarks

 

Anonymous
Not applicable

Hi @khitish,

 

It may suitable for your requirement if you drag category/legend column as source of slicer.

12.PNG13.PNG

 

Regards,

Xiaoxin Sheng

@Anonymous

 

Thanks for your reply. My requirement is to generate a new pie chart or a bar graph, with the selection of the slicer.

In your example, you have created a graph and then with your selection, your graph bars are getting added.

 

I hope you understand my requirement now. I need a template where with each item selected in a slicer, a new graph will get generated.

Anonymous
Not applicable

Hi @khitish,

 

>>My requirement is to generate a new pie chart or a bar graph, with the selection of the slicer.

Nope, current power bi not support auto generate new visuals based on slicer, it only support to operate filters on existed visuals by relationship.

 

Regards,

Xiaoxin Sheng

bullius
Helper V
Helper V

Just to clarify, you want there to be no graph before the slicer value is selected, then a whole graph appears after it is selected?

@bullius

 

Yes, you are correct.

In the slicer
No option selected: no graphs
2 options selected: 2 graphs will be generated.
Again one option deselected: one graph should disappear.

Hope I clarified your doubt.

Do you have any solution for me?

Yes, you are correct.

In the slicer
No option selected: no graphs
2 options selected: 2 graphs will be generated.
Again one option deselected: one graph should disappear.

Hope I clarified your doubt.

Still searing for the solution. Please suggest.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors