cancel
Showing results for 
Search instead for 
Did you mean: 
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.

 
Mariusz
Community Champion
Community Champion

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!!!
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Learn Power BI 2nd Edition

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!