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
pzyyc
New Member

Generate dynamic number of tables (Excel Power Query)

Is there a way to create a dynamic number of power query tables based on the number of rows in a parameter table? I have an "Admin" sheet that contains a parameter table with 1 column "EntityName". and a fact table (with EntityName) as one of the fields. The user will input the entity names into the parameter table and click generate sheets. Using VBA, a sheet will be created for each row in the parameter table. I want to be able to output a table in each of the generated sheets that filters the fact table by the entity for each sheet. For example if 2 sheets were created (Entity A and Entity B), I would want to output a table on the Entity A sheet that is a filtered fact table for only EntityName = "Entity A". Same for Entity B. Any ideas if this is possible/if you see a better solution using only PowerQuery (rather than VBA)??

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

No, you cannot create dynamic queries / partitions in Power Query.

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

No, you cannot create dynamic queries / partitions in Power Query.

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.