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
Dilesha08
Regular Visitor

Rename the columns of a table using the values from another table.

I am trying to rename the columns of a table using the values from another table.

GetIssues

Column1.fields.customfield_10041Column1.fields.customfield_10042Column1.fields.customfield_10043
xxxxxxxxx
xxxxxxxxx

 

field

IdName
Column1.fields.customfield_10041 a
Column1.fields.customfield_10042b
Column1.fields.customfield_10043 c

 

I want to rename the first table as the below table.

abc
xxxxxxxxx
xxxxxxxxx

 

Note

1. I am doing a Jira analysis 

2. Not all the columns are in the format of Column1.fields.customfield_10041

Can you please help me to do this?
Thanks.
@v-chuncz-msft 

@MarcelBeug 

6 REPLIES 6
Mariusz
Community Champion
Community Champion

Hi @Dilesha08 

 

Please see the attached file with a solution 


Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn



Thanks, that helped me a lot!

@Mariusz I get the following error when I apply changes.Capture.PNG

Actually I want to match the exact column name from table 2 and add it to table 1. Also, the specific columns are not in order. Only we can match them with their id.

 

Hi @Dilesha08 

 

Sorry, but I have no idea what that error is without investigating.

Have you applied the steps as in the file? does it work in PQ?

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

@Mariusz Yes, I have followed up on your steps. But the issue is I want to take the data from another table, not from a list. I don't have an idea to do it. 

 

Capture.PNG

Greg_Deckler
Super User
Super User

Are you looking for a Power Query or DAX solution?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.