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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
mariakos
New Member

Data shaping

Hi,

 

I need some help shaping the data in the table below:

 

I have 2 issues as described below:

Problem 1: Reordering Columns
Label Definitions: Columns labeled 1, 2, and 3 correspond to year, country, and topics, respectively. I need assistance rearranging these columns to reflect this logical order. Alternatively, this could be addressed by creating a reference table, such as I've seen with date tables, to map the labels accordingly. 
Standardising: Ensure that all columns have consistent headers (e.g., "year," "country," "topics").


Problem 2: Separating Multiple Values
Rows with multiple values (e.g., FR, NO, DE under the label 'country') need to be organised so that each value is listed separately under 'country,' allowing for the selection of individual values like FR for visualisation purposes

Mapping to column headers: Ensure values are assigned to their appropriate logical column headers.

Looking forward to hearing from you and your possible solutions to my issues. Thank you 🙂

ImpressionsReach avg.FrequencyEngagementsEngagement rateCTR         
612037501,63961,5711,671. 20243. Employer Branding2. DE      
247317451,42602,432,67         
295822381,32240,8127,351. 2024 2. DE3. Financial Reporting     
10456691,56222,112,681. 2024   2. FR    
204013471,51442,163,481. 2024    3. Press release2. IT  
324422051,47611,882,51. 2024      2. ES 
374927441,37872,322,161. 2024  3. Financial Reporting    2. NO
34656265211,313551,0219,02         
1 ACCEPTED SOLUTION
v-yajiewan-msft
Community Support
Community Support

Hi @mariakos,

 

Translate the data in power query, rename column 1,2,3 to year, country and topics first:

vyajiewanmsft_0-1733895391981.png

Then split the country column with multiple values with delimiter:

vyajiewanmsft_1-1733895482440.png

In my test, I used a comma as the delimiter, and you can choose a different delimiter if needed.

vyajiewanmsft_2-1733895546364.png

Before:

vyajiewanmsft_3-1733895582804.png

Later:

vyajiewanmsft_4-1733895597539.png

Best regards,

Joyce

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

 

 

View solution in original post

1 REPLY 1
v-yajiewan-msft
Community Support
Community Support

Hi @mariakos,

 

Translate the data in power query, rename column 1,2,3 to year, country and topics first:

vyajiewanmsft_0-1733895391981.png

Then split the country column with multiple values with delimiter:

vyajiewanmsft_1-1733895482440.png

In my test, I used a comma as the delimiter, and you can choose a different delimiter if needed.

vyajiewanmsft_2-1733895546364.png

Before:

vyajiewanmsft_3-1733895582804.png

Later:

vyajiewanmsft_4-1733895597539.png

Best regards,

Joyce

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

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.