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
redomer44
Regular Visitor

Data shaping cleaning

redomer44_0-1729546308470.png

I have the kind excel file with double header and need help transforming structured table with single header.

Here excel Data below

 

Column1Column2Column3Column4Column5Column6Column7Column8Column9Column10
House plan System
Goal 1    Goal 2    
MetricsActualTargetMetric #Total #MetricsActualTargetMetric #Total #
% of Objectives met.0%TBD03% of Objectives met.0%TBD04
% of Objectives me by original date.0%TBD03% of Objectives me by original date.0%TBD04
% of Objectives me by adjusted date.0%TBD03% of Objectives me by adjusted date.0%TBD04
% of Action Step met.6%TBD116% of Action Step met.38%TBD616
% of Action Step met by original date6%TBD116% of Action Step met by original date31%TBD516
% of Action Step met by adjusted date0%TBD016% of Action Step met by adjusted date6%TBD116
% of Action Steps revised.25%TBD416% of Action Steps revised.6%TBD116
Goal 3    Goal 4    
MetricsActualTargetMetric #Total #MetricsActualTargetMetric #Total #
% of Objectives met.0%TBD03% of Objectives met.0%TBD04
% of Objectives me by original date.0%TBD03% of Objectives me by original date.0%TBD04
% of Objectives me by adjusted date.0%TBD03% of Objectives me by adjusted date.0%TBD04
% of Action Step met.6%TBD116% of Action Step met.38%TBD616
% of Action Step met by original date6%TBD116% of Action Step met by original date31%TBD516
% of Action Step met by adjusted date0%TBD016% of Action Step met by adjusted date6%TBD116
% of Action Steps revised.25%TBD416% of Action Steps revised.6%TBD116
Goal 5    House plan System totals    
MetricsActualTargetMetric #Total #MetricsActualTargetMetric #Total #
% of Objectives met.0%TBD03% of Objectives met.0%TBD04
% of Objectives me by original date.0%TBD03% of Objectives me by original date.0%TBD04
% of Objectives me by adjusted date.0%TBD03% of Objectives me by adjusted date.0%TBD04
% of Action Step met.6%TBD116% of Action Step met.38%TBD616
% of Action Step met by original date6%TBD116% of Action Step met by original date31%TBD516
% of Action Step met by adjusted date0%TBD016% of Action Step met by adjusted date6%TBD116
% of Action Steps revised.25%TBD416% of Action Steps revised.6%TBD116
1 ACCEPTED SOLUTION

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

Paste that data in an MS Excel file and in another tab of that file, show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

redomer44_0-1729652719645.png

 

KNP
Super User
Super User

What is your desired output?

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

redomer44_0-1729652591946.png

 

Anonymous
Not applicable

Thanks for the replies from Ashish_Mathur and KNP.

 

Hi @redomer44 ,

 

Please follow these steps in Power Query Editor:

 

1.Duplicate table.

vlinhuizhmsft_0-1730100014340.png

2.Delete the unwanted rows for both tables.

vlinhuizhmsft_1-1730100076430.png

3.Create two new tables:

vlinhuizhmsft_2-1730100567408.pngvlinhuizhmsft_3-1730100577510.png

4.Moving on to similar operations for Table and Table(2), we'll use Table as an example.

vlinhuizhmsft_4-1730100788745.png

vlinhuizhmsft_5-1730100815642.png

5.Expand and fill the field:

vlinhuizhmsft_6-1730100849232.png

vlinhuizhmsft_7-1730100893834.png

6.Filter out the required data.

vlinhuizhmsft_8-1730101043156.png

7.Rename columns.

vlinhuizhmsft_9-1730101192143.png

8.Append two tables:

vlinhuizhmsft_0-1730103620148.png

Result:

vlinhuizhmsft_1-1730103689871.png

 

Best Regards,
Zhu

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

KNP
Super User
Super User

You could try something like this...

 

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WclTSUXICYmcgdgFiV6VYnWil4Pzc1JKMzLx0oAgCgWQMgQwjIDYGYhMgNlWKjQUA", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Column1 = _t, Column2 = _t, Column3 = _t, Column4 = _t, Column5 = _t]),
    headers = Table.FirstN(Source,1),
    remove = Table.Skip(Source,2),
    combine = Table.Combine({headers, remove}),
    promote = Table.PromoteHeaders(combine)
in
    promote

 

Paste it into the advanced editor of a blank query to see what it's doing.

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
xOIEmaj

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
image
fabric-SUbadge
Proud to be a Super User!

Column1Column2Column3Column4Column5Column6Column7Column8Column9Column10
House plan System
Goal 1    Goal 2    
MetricsActualTargetMetric #Total #MetricsActualTargetMetric #Total #
% of Objectives met.0%TBD03% of Objectives met.0%TBD04
% of Objectives me by original date.0%TBD03% of Objectives me by original date.0%TBD04
% of Objectives me by adjusted date.0%TBD03% of Objectives me by adjusted date.0%TBD04
% of Action Step met.6%TBD116% of Action Step met.38%TBD616
% of Action Step met by original date6%TBD116% of Action Step met by original date31%TBD516
% of Action Step met by adjusted date0%TBD016% of Action Step met by adjusted date6%TBD116
% of Action Steps revised.25%TBD416% of Action Steps revised.6%TBD116
Goal 3    Goal 4    
MetricsActualTargetMetric #Total #MetricsActualTargetMetric #Total #
% of Objectives met.0%TBD03% of Objectives met.0%TBD04
% of Objectives me by original date.0%TBD03% of Objectives me by original date.0%TBD04
% of Objectives me by adjusted date.0%TBD03% of Objectives me by adjusted date.0%TBD04
% of Action Step met.6%TBD116% of Action Step met.38%TBD616
% of Action Step met by original date6%TBD116% of Action Step met by original date31%TBD516
% of Action Step met by adjusted date0%TBD016% of Action Step met by adjusted date6%TBD116
% of Action Steps revised.25%TBD416% of Action Steps revised.6%TBD116
Goal 5    House plan System totals    
MetricsActualTargetMetric #Total #MetricsActualTargetMetric #Total #
% of Objectives met.0%TBD03% of Objectives met.0%TBD04
% of Objectives me by original date.0%TBD03% of Objectives me by original date.0%TBD04
% of Objectives me by adjusted date.0%TBD03% of Objectives me by adjusted date.0%TBD04
% of Action Step met.6%TBD116% of Action Step met.38%TBD616
% of Action Step met by original date6%TBD116% of Action Step met by original date31%TBD516
% of Action Step met by adjusted date0%TBD016% of Action Step met by adjusted date6%TBD116
% of Action Steps revised.25%TBD416% of Action Steps revised.6%TBD116

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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 Solution Authors