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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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