cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HennSarv
Helper I
Helper I

taking two (2) first line as column headers

Dear friends - help me bypass some manual work

I have data source (I can't change) containing tables (actually sheet but can treat as Excel

Thei contain several tables, where header contains in two (2) rows so I need to combine 2 rows into one, bes when I can to concat them. So I'm looking something like 

Reocord.ConcatByMember({table{0},table{1}})

Name, Address, Salary, Salary, Slary
null, null, 2020, 2021, 2022

->
Name, Address, Salary 2020, Salary 2021, Salary 2022

PS! Actual number of columns is much biger but somekind ligic is similar

1 ACCEPTED SOLUTION
olgad
Solution Sage
Solution Sage

Hi, 
transpose your table

olgad_0-1674056020248.png
then merge the columns

olgad_1-1674056065738.png

then transpose again and promote the headers

olgad_2-1674056091047.png

 

olgad_3-1674056113250.png

Hope that works!


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Solution Sage
Solution Sage

Hi, 
transpose your table

olgad_0-1674056020248.png
then merge the columns

olgad_1-1674056065738.png

then transpose again and promote the headers

olgad_2-1674056091047.png

 

olgad_3-1674056113250.png

Hope that works!


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Great!

TUhat tänu!
Many (100) thänks!
Grazie mille!

Helpful resources

Announcements
Winner of T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Find out who won the T-Shirt Design Challenge and the top 3 finalists.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

Top Kudoed Authors