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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Expand Table Column in a new table

Hello, 

I am trying to build kind of table information for my DB and everything looks good so far.
pc1.png

and after running this query I get the following results

pc2.png

but  those profiles are objects so I can not work with them in POWER BI, but all what i get in just a text with the value [table].

so I thought is it possible to build a new table with all the expanded tables and add a column with the name of the Original table and repet it among the matching rows and then the next table from DB and so far. 
So I will have a table with Name of the table and columns and then the next table with the columns.  so I can use a filter during the visualization of the data in Power Bi. 
but how to do that I have no idea , how to make a loop that goes all over the Profile tables and expand them then add the name of the table to each match one. 

2 REPLIES 2
v-ljerr-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

Have you tried the solution provided by @MarcelBeug above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

MarcelBeug
Community Champion
Community Champion

You can expand the tables, as you already do in your query, however you return not that step after in, but the previous step.

So my suggestion would be to adjust #"Added Custom" to #"Expanded Profile" (after the first "in")..

 

Otherwise I wouldn't use 2 "let .. in" loops.

Specializing in Power Query Formula Language (M)

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors