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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
tomshaw83
Helper I
Helper I

Cleaning Data

Hi,

 

I am looking to reshape some messy data from a PDF table as in the example below, to create the table below that.

 

I can perform this transition (i think) with many, many, many applied steps. Though if there are specific techniques that produce a more efficient solution I would be keen to see them, or if anyone knows of any resources online that I can research into this I would be keen to upskill.

 

 Header 1 Header 2 Header 3     
 Fact 1 Value 1Fact 2 Value 1 Fact 3 Value 1     
Header 4Fact 4 Value 1 Header 5Fact 5 Value 1Header 6 Fact 6 Value 1Header 7Fact 7 Value 1 

 

Header 1Header 2Header 3Header 4Header 5Header 6Header 7
Fact 1 ValueFact 2 ValueFact 3 ValueFact 4 ValueFact 5 ValueFact 6 ValueFact 7 Value

 

 

Thank you


Tom

 

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @tomshaw83 

I'm not sure if my solution is more efficient than yours. But my solution is all processed with the user interface without needing to modify the M codes in Advanced editor. You can download the attached pbix file to check specific steps.

 

To make it clearer, I deal with the data in separate queries and combine them at the end. 

042604.jpg

Hope this helps.

Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

View solution in original post

2 REPLIES 2
tomshaw83
Helper I
Helper I

Thank you, some useful techniques in your solution

v-jingzhang
Community Support
Community Support

Hi @tomshaw83 

I'm not sure if my solution is more efficient than yours. But my solution is all processed with the user interface without needing to modify the M codes in Advanced editor. You can download the attached pbix file to check specific steps.

 

To make it clearer, I deal with the data in separate queries and combine them at the end. 

042604.jpg

Hope this helps.

Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors