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
haykp
Helper I
Helper I

Slicer for jumping between databases

Dear Forum,

 

I am freshman in powerbi, please help to implement one slicer to jump between 2 databases.

So I  imported 2 different folders. These folders contain similar files, about my test results.

Now I am able to print all the test-restuls.

But I want to have a some button which would let me to select which folder/database name to plot.

 

So I have 2 folders: ams and uvm:

haykp_0-1681486398274.png

how I can implement slicer to switch between uvm and ams databases?

 

Thanks

Hayk

1 REPLY 1
BA_Pete
Super User
Super User

Hi Hayk,

 

The optimal thing to do would be to add a custom column to each query called 'Source'. In the ams query, the value of this column will just be = "ams". In the uvm query it will be = "uvm".

Append the two queries together in Power Query and disable load for both ams and uvm, but allow the new appended query to load.

In the Data Model, add a slicer that uses the appendedQuery[Source] field to switch between.

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.