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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Using the same visuals fo diffrent queries

Hi , 

 

I was wondering if by any chance this is possible.

I need to make visualistations. For an excell file that has about 30 tabs. 

I need to make 5 exactly the same visualistations (using the same rows ) for each of those 30 tabs. And they need to be shown in diffrent pages in PowerBI. Is there any chance a way to automate this?

1 ACCEPTED SOLUTION

OK, if each is a separate table then not much in the way of automation. Unless they all have the same data structure, which I would think they would since you want to use the same visuals for each. If that is the case I can think of 2 methods. First method would be to Append or UNION all of your tables together but preserve an identifier for each. In other words, in your query you would add a "Source" column to each one and label them 1 - 30. Once they are all appended together, you could copy and paste your visuals to 30 different pages and then just add a page level filter to each page to limit it to 1 - 30 in terms of the source.

 

The second method would be to keep the tables separate but use a measure in your visuals. You could create a separate table with the numbers 1-30 in it. You would use that in a report filter. The measures you would create would use that value to select the right table.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Super User
Super User

Would need a little more info but probably nothing super automated. Are each of those 30 sheets their own table in the data model then? You can use Ctrl-left-click to select multiple visuals and copy and paste between pages.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Yes , each of those 30 tabs are 30 diffrent tables in the data model.

OK, if each is a separate table then not much in the way of automation. Unless they all have the same data structure, which I would think they would since you want to use the same visuals for each. If that is the case I can think of 2 methods. First method would be to Append or UNION all of your tables together but preserve an identifier for each. In other words, in your query you would add a "Source" column to each one and label them 1 - 30. Once they are all appended together, you could copy and paste your visuals to 30 different pages and then just add a page level filter to each page to limit it to 1 - 30 in terms of the source.

 

The second method would be to keep the tables separate but use a measure in your visuals. You could create a separate table with the numbers 1-30 in it. You would use that in a report filter. The measures you would create would use that value to select the right table.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

thanks it's working ! 🙂

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.