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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors