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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
huguest
Advocate II
Advocate II

Change Query but Keep Models and Visualizations

Hello, 

 

I have created several visuals using fields from one of my queries (Query1).  I have a second query (Query2) that contains the exact same fields as Query1, but with data coming from a different source.

 

Can I copy my visuals and change the source Query where the fields are located from Query1 to Query2 without recreating each of the visuals individually?

 

Thank you!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I don't think there's any way to do this, but I would love to be proven wrong. The only thing I can think of is instead of having both data sets in one report, you could duplicate the entire PBIX file and use the second dataset there.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi,

Just wondering if there still isn't a proper way to do this?

 

Regards,

Robin

Anonymous
Not applicable

I don't think there's any way to do this, but I would love to be proven wrong. The only thing I can think of is instead of having both data sets in one report, you could duplicate the entire PBIX file and use the second dataset there.

Thanks to this solution, I have come up with this approach:

  1. Create your 2 queries (Query1 - where your visuals is connected, Query2 - just another data source with same schema)
  2. Copy the PBIX (with those queries present)
  3. Edit your copied PBIX
    1. Delete Query2
    2. Rename Query1 to Query2
    3. Copy the visuals
  4. Paste the visuals on your original PBIX Report (this would consume Query2, which is connected to other data source)

This approach preserves your visuals in just one report. 😄 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.