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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
JustDavid
Helper IV
Helper IV

Reference Query as a Table in a Row

I have a query name 'tblData' which is a table (has columns and rows).

 

My question now is that, in a new query, how can I reference this tblData and make it into a 'Table' data type in a row (as seen in print screen)?

 

Reason I ask is that, it seems that when it's in 'Table' data type, doing Table.TransformColumns seems to be faster.

 

Table DataType in row.png

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

The table constructor should do that for you...

= #table({"Data"}, {{TableName}})

Replace TableName with the name of the table being referenced.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
jgeddes
Super User
Super User

The table constructor should do that for you...

= #table({"Data"}, {{TableName}})

Replace TableName with the name of the table being referenced.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





PwerQueryKees
Super User
Super User

Not sure what you are trying to achieve, but you can use a Table just like any other value, a number for example.

 

so to add a column containing your table in every row to your current table:

=Table.AddColumn(Source, "My Table Column", each tblData)

If you do a group by and select "keep all rows" as the aggregation, it will also produce a field with tables in it. Different tables, because each table will only have the rows belonging to the current groep.

Did I answer your question? Then please (also) mark my post as a solution and make it easier to find for others having a similar problem.
Remember: You can mark multiple answers as a solution...
If I helped you, please click on the Thumbs Up to give Kudos.

Kees Stolker

A big fan of Power Query and Excel

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.