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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
ScottGM
New Member

Select Data based on slicer selection

Hi everyone,

 

This has been doing my head in for a while and I wonder if I could get some advice.

 

I have 5 Data sets, each sharing the same columns but have different values based on a Type of company.
What I want to do is have a slicer for Types A,B,C,D Where selecting type A would bring in data from Dataset A, type B from Dataset B and so on and put selected columns in to a visual.
Lastly, if nothing is selected, I would want the table to show data from Dataset E.

For example:
Lets say Type A is for Small companies.
If I select Type A in the slicer: I want to return Sales and profit in a table visual using data from my Small Companies dataset (These figures are in the dataset already). And so on for Type B, C, D etc. And finally Type E will be a default if nothing is selected in the slicer.

I hope this makes sense!

Thank you.

1 REPLY 1
vicky_
Super User
Super User

Are you able to union the datasets in PowerQuery (since they share the same column names). Then you can simply create the report as usual using the UnionedTable, and put a slicer in to select the company. 
I'm not sure about the details of your report, but you can use a slicer with the single-select option to make sure that you won't have to do any extra code to handle the case where nothing is selected.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.