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
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
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.