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 many columns according to two other columns ?

Hello everyone,

 

I'd need help to merge many columns according to two other columns.

 

On my table, I have this:

Num TransportTrafficAttribute 1Attribute 2
123MondayBluenull
123MondaynullGreen
123Tuesdaynull

Yellow

123TuesdayPurple
null

 

And I'd like to have this:

Num TransportTrafficAttribute 1Attribute 2
123MondayBlueGreen
123TuesdayPurpleYellow

 

Could you help me please ? Thank you !

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

If it's always 2 columns to merge:

In Power Query, select the first 2 columns. Choose 'Group By' from the ribbon.

You need 2 aggregations (First one using MIN on attribute1, second one using MIN on attribute2)

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thanks a lot it works!

HotChilli
Super User
Super User

If it's always 2 columns to merge:

In Power Query, select the first 2 columns. Choose 'Group By' from the ribbon.

You need 2 aggregations (First one using MIN on attribute1, second one using MIN on attribute2)

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