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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
BI_Analyticz
Helper V
Helper V

Expand Table column to columns instead of rows

Friends, I have a Table column (TAGS) in one of my Table (HostAssets). When I expand this Table column (TAGS) it is expanding in to multiple rows and providing me multiple TAG_ID and TAG_Name for each Asset in the HostAssets table. 

 

I totally have 20000 assets. Since each asset is having atleast 10 TAG_ID the total row colunt is becoming 20000*10. Is it possible to expand this table column to multiple columns instead of multiple rows. Kindly help.

 

#"Expanded TAGS" = Table.ExpandTableColumn(#"Expanded DNS_DATA", "TAGS", {"TAG"}, {"TAGS.TAG"}),
#"Expanded TAGS.TAG" = Table.ExpandTableColumn(#"Expanded TAGS", "TAGS.TAG", {"TAG_ID", "NAME"}, {"TAGS.TAG.TAG_ID", "TAGS.TAG.NAME"})

1 ACCEPTED SOLUTION

@BI_Analyticz 

I created a sample data set and did the following. Check the attached file.

Fowmy_0-1622112679701.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

4 REPLIES 4
Fowmy
Super User
Super User

@BI_Analyticz 

If you need to expand across columns, you have two columns inside your table TAG ID and TAG NAME, which column you do you want to put across columns, choose one.

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy  TAG NAME is the one I want actually. 

 

I thought we can do it like below if possible

 

Asset Name, TAGE ID, TAG Name

ABC, 1234, Windows

BCD 1238, Linux

@BI_Analyticz 

I created a sample data set and did the following. Check the attached file.

Fowmy_0-1622112679701.png

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

amitchandak
Super User
Super User

@BI_Analyticz , while expending you get the option to add columns or rows.

 

check my Json video :How to import JSON Data: https://youtu.be/MPYfEetvFH4

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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