Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Merge top two cells of a column in Power Query

Hi there

 

I have to work with this god-awful excel file from Finance where they have displayed the data in a very non-friendly format for Power BI.

It looks like the attached photo. So the top two rows are year and month and I want to combine them. Is this possible? 

 

Test.png

2 ACCEPTED SOLUTIONS
CNENFRNL
Community Champion
Community Champion

of coz, some easy steps,

transpose - combine the leftmost 2 columns - transpose


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

View solution in original post

v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Have you solved this problem? If yes, could you kindly accept the answer helpful as the solution (or kindly share your solution ). so the others can find it more quickly.
-

if not, you can use transpose in PQ then combine the 2 columns (you cannot combine rows into one row in PQ), or combine the first two rows in Excel directly, e.g. =C110&" "&C111.

in PQ, for example,

vxiaotang_0-1629180029596.png

vxiaotang_2-1629180101444.png

result

vxiaotang_4-1629180136656.png

Any question, please let me know. Looking forward to receiving your reply.

 

 

Best Regards,

Community Support Team _Tang

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Have you solved this problem? If yes, could you kindly accept the answer helpful as the solution (or kindly share your solution ). so the others can find it more quickly.
really appreciate!
Any question, please let me know. Looking forward to receiving your reply.


Best Regards,
Community Support Team _Tang

v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Have you solved this problem? If yes, could you kindly accept the answer helpful as the solution (or kindly share your solution ). so the others can find it more quickly.
-

if not, you can use transpose in PQ then combine the 2 columns (you cannot combine rows into one row in PQ), or combine the first two rows in Excel directly, e.g. =C110&" "&C111.

in PQ, for example,

vxiaotang_0-1629180029596.png

vxiaotang_2-1629180101444.png

result

vxiaotang_4-1629180136656.png

Any question, please let me know. Looking forward to receiving your reply.

 

 

Best Regards,

Community Support Team _Tang

CNENFRNL
Community Champion
Community Champion

of coz, some easy steps,

transpose - combine the leftmost 2 columns - transpose


Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension!

DAX is simple, but NOT EASY!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors