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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors