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! Learn more

Reply
aerosanth16
Frequent Visitor

How to point the existing report to a different Query ?

Dear Power BI experts,

I have an existing power BI report with multiple pages.

All the visuals in the exisitng report is built using Fields in refers to Query A.

Now i want to replace all the visuals to refer to Query B.

I have all the Fields required to produce the visuals in Query B also, Names are also exactly name.

Where & How can I tell Power BI that Refer to Query B instead in Query A for ALL the visuals in ALL the pages this Report, in one go ?

 

Regards & Thanks,

Santhosh M

 

aerosanth16_0-1602259539186.png

 

1 ACCEPTED SOLUTION
akul
Helper I
Helper I

What you want to achieve is not supported by PowerBI. You cannot change the table/query from which the visual picks up the field to show data programatically. You need to manually change all the fields in the visuals from A to B.
However, you can append the two queries i.e. A and B together into say C. (I presume both A and B queries have the same table structure as you just want to replace the table name in the visuals to get the data from other query) Before appending, just add a column in both the queries having the query name. So now, query C has all the data of both A and B and also has the info about which data belongs to which query i.e. the new column you added.

Now you would have to change all the visuals to use fields from C and then you can just put a filter or a slicer visual to change between A and B using the query name field.

Hope I understood your problem correctly and was able to answer correctly as well. If this resolved your issue, mark this as an accepted solution!

View solution in original post

2 REPLIES 2
akul
Helper I
Helper I

What you want to achieve is not supported by PowerBI. You cannot change the table/query from which the visual picks up the field to show data programatically. You need to manually change all the fields in the visuals from A to B.
However, you can append the two queries i.e. A and B together into say C. (I presume both A and B queries have the same table structure as you just want to replace the table name in the visuals to get the data from other query) Before appending, just add a column in both the queries having the query name. So now, query C has all the data of both A and B and also has the info about which data belongs to which query i.e. the new column you added.

Now you would have to change all the visuals to use fields from C and then you can just put a filter or a slicer visual to change between A and B using the query name field.

Hope I understood your problem correctly and was able to answer correctly as well. If this resolved your issue, mark this as an accepted solution!

Anonymous
Not applicable

@aerosanth16 ,

 

You can check this - https://www.kasperonbi.com/how-to-point-existing-reports-to-a-new-dataset-in-power-bi-even-from-aas/ if this helps you.

 

Appreciate your kudos!! Please mark my post as solution if this suits your requirement.

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