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 tables where first column has a differenct name

I have a table with two columns (see Query1 in PBXI file in the link below). I use the first column to filter the second columns of tables. Once I filter my table I want to expand the sleceted tables. The problem is that each table has a differet name for the first column so when I expand it I only get the first tables data in the first column. How can I make all the first columns have the same name before expanding so that my data is formated properly?  

 

table.PNG

 

https://drive.google.com/file/d/166Ic5QjIB8Ux5Qeri3fF7xGy0ttOZddg/view?usp=sharing 

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

You can add a custom column with a formula like this to rename all the first columns.

 

= Table.RenameColumns([all], {Table.ColumnNames([all]){0}, "New Name"})

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

4 REPLIES 4
mahoneypat
Employee
Employee

You can add a custom column with a formula like this to rename all the first columns.

 

= Table.RenameColumns([all], {Table.ColumnNames([all]){0}, "New Name"})

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks @mahoneypat, great simple solution!

AlB
Super User
Super User

Hi @Anonymous 

Can you include the files that the query accesses? The steps are not visible

 

SU18_powerbi_badge

Please accept the solution when done and consider giving a thumbs up if posts are helpful. 

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

 

 

Anonymous
Not applicable

Hi @AlB I added the folder that I use as the data source. 

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.

Top Solution Authors
Top Kudoed Authors