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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
6DiegoDiego9
Helper I
Helper I

Dealing with merged cells and dates as horizontal titles

I've an Excel range like the following, with merged cells and many dates (3 years) on the horizontal title:

6DiegoDiego9_0-1650892127210.png


Is there an easy way to 
transform it for use with Power BI?

i.e. filling the missing Brand and Model values and taking all the dates as as a Date field (unpivot?)

Thanks in advance

1 ACCEPTED SOLUTION
Vijay_A_Verma
Super User
Super User

Use this. Sample Excel uploaded here - https://1drv.ms/x/s!Akd5y6ruJhvhuWDGH3OB4nggLBvz?e=wxOqfe 

let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Filled Down" = Table.FillDown(Source,{"Brand", "Model"}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Filled Down", {"Color", "Model", "Brand"}, "Date", "Value")
in
    #"Unpivoted Other Columns"

 

View solution in original post

2 REPLIES 2
6DiegoDiego9
Helper I
Helper I

Wow thanks a lot!
I'm stunned by how powerful and easy Power Query is!

Vijay_A_Verma
Super User
Super User

Use this. Sample Excel uploaded here - https://1drv.ms/x/s!Akd5y6ruJhvhuWDGH3OB4nggLBvz?e=wxOqfe 

let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Filled Down" = Table.FillDown(Source,{"Brand", "Model"}),
    #"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Filled Down", {"Color", "Model", "Brand"}, "Date", "Value")
in
    #"Unpivoted Other Columns"

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.