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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
twister8889
Helper V
Helper V

Excel with merge cells to Power BI tabular table

Hello guys,

 

I have a table from excel, with some cells merged, I would like to transform this cells/table in the tabular table into Power BI, how can do I do this? What kind of options to solve this, do I have here?

 

mesclar.png

mesclar_pb.png

 

 

 

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @twister8889 

After importing, in Transform data,

Capture7.JPG

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("PcrNCoJAFMXxV4m7ltH7YeADtGzXbphVDhiMGmFQb9+NM7o5fzj8YqTlXQo1ey6fZ75veTxd12Wbytev22POnnl9ZUpNJG65lY4H/4agvsxB/pFgHtOqZFfcgQmYglllejAGUzAD6yuzgwmYgfVgZ0rpBw==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Month = _t, Expected = _t, hours = _t, Column4 = _t, Column5 = _t]),
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"Month", type date}, {"Expected", type number}, {"hours", type text}, {"Column4", type text}, {"Column5", type text}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"hours", "Expected Monthly"}, {"Column4", "Time"}, {"Column5", "more"}}),
    #"Removed Top Rows" = Table.Skip(#"Renamed Columns",1),
    #"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Removed Top Rows", {"Month", "Expected"}, "Attribute", "Value"),
    #"Renamed Columns1" = Table.RenameColumns(#"Unpivoted Columns",{{"Attribute", "hours"}}),
    #"Added Custom" = Table.AddColumn(#"Renamed Columns1", "hign level", each "hours")
in
    #"Added Custom"

Capture8.JPG

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

First of all, thank you @v-juanli-msft 


I understood that your solution, as to use in the table into power bi, right? I have other sheets in excel with more complexity merge cells, so I would like to have the table in the Editor, like a tabular model, because I need to use this data to the relationship with another table and use this data to create some pie/bar charts.

 

In the Editor, my table will be like this:

 

mesclar_final.png

 

I would like to have this as the final result in the Editor model, this is possible?

 

Thank you, so much.

 

 

amitchandak
Super User
Super User

@ImkeF , any suggestions on this

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.

Top Kudoed Authors