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
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
Employee
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
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.