cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors