The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I've an Excel range like the following, with merged cells and many dates (3 years) on the horizontal title:
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
Solved! Go to Solution.
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"
Wow thanks a lot!
I'm stunned by how powerful and easy Power Query is!
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"