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
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
Super User
Super User

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/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

View solution in original post

2 REPLIES 2
olgad
Super User
Super User

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/LIKE!
PROUD TO BE A SUPER USER!
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
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