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
GoatTracker
Frequent Visitor

Add as new query from existing query

Hi brains trust,

 

I've Grouped by the ID field and want to dynamically create a new query from the Table it generates per Project. At present, I have to right-click each row's Table and select "Add as new query". This would be painful. ANyone got some adeas to resolve please?

 

I'm trying to create individual worksheets from a master list by Project, I haven't been able to do this without VBA but if someone has a solution, I'd be happy to see it.

 

GoatTracker_0-1707973089784.png

GoatTracker_1-1707973281778.png

 

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @GoatTracker ,

 

If you really want to follow this course then I think VBA is your best/only bet.

Power Query can't spawn new queries itself and anything we could do to make this happen would be very fiddly, and neither particularly dynamic nor robust.

Have you considered having just one generic Project tab that you change the data in using a pivot slicer against your main project table?

 

Pete

 



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

Proud to be a Datanaut!




View solution in original post

1 REPLY 1
BA_Pete
Super User
Super User

Hi @GoatTracker ,

 

If you really want to follow this course then I think VBA is your best/only bet.

Power Query can't spawn new queries itself and anything we could do to make this happen would be very fiddly, and neither particularly dynamic nor robust.

Have you considered having just one generic Project tab that you change the data in using a pivot slicer against your main project table?

 

Pete

 



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

Proud to be a Datanaut!




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.

Top Solution Authors
Top Kudoed Authors