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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Baubek777
New Member

Advanced data transformation in Power Query

Hi,

 

I have an issue with transforming the data loaded from a pdf file to Power BI.

The raw data looks like this: 

 

New-York
Metallurgy
Client-10, CNY rate 2.90%, USD rate 2.70%, EUR rate 1.90%
Client-8, CNY rate 3.40%, USD rate 2.50%, EUR rate 1.30%
Client-9, CNY rate 2.80%, USD rate 2.70%, EUR rate 0.70%
Oil and gas
Client-11, CNY rate 5.60%, USD rate 1.10%, EUR rate 1.90%
Chemical engineering
Client-12, CNY rate 0.50%, USD rate 2.30%, EUR rate 0.30%
Client-13, CNY rate 3.50%, USD rate 0.40%, EUR rate 0.50%
Los-Angeles
Metallurgy
Client-17, CNY rate 1.30%, USD rate 1.70%, EUR rate 1.40%
Oil and gas
Client-14, CNY rate 3.10%, USD rate 2.50%, EUR rate 0.50%
Client-15, CNY rate 5.20%, USD rate 1.70%, EUR rate 1.10%
Chemical engineering
Client-16, CNY rate 3.90%, USD rate 2.90%, EUR rate 1.80%
State bodies, authorities
Client-18, CNY rate 4.20%, USD rate 0.00%, EUR rate 0.20%
Client-19, CNY rate 5.60%, USD rate 2.70%, EUR rate 1.10%

 

I want it to get transformed into this format:

 

New-YorkMetallurgyClient-10CNY rate 2.90%
New-YorkMetallurgyClient-10USD rate 2.70%
New-YorkMetallurgyClient-10EUR rate 1.90%
New-YorkMetallurgyClient-8CNY rate 3.40% 
New-YorkMetallurgyClient-8USD rate 2.50%,
New-YorkMetallurgyClient-8EUR rate 1.30%
New-YorkMetallurgyClient-9CNY rate 2.80%
New-YorkMetallurgyClient-9USD rate 2.70%
New-YorkMetallurgyClient-9EUR rate 0.70%
And so on   

 

Please, note:

1. There can be any number of industries in each city

2. There can be any number of clients in each industry

3. Client names in the source file can be the same, but those clients can be different, because they may belong to different industries in different cities. 

 

Would you please describe step-by-step how to transform the data into desired format? Thank you in advance!

0 REPLIES 0

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.