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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register 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
Anonymous
Not applicable

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

2 REPLIES 2
mariakos
New Member

Thank you for your help. Sorry for the delay in my response. I was away and had limited access to the internet. 
The data doesn't feed into Power BI clearly like you have interpreted it with column 1, column 2 and column 3.  Each data input is labelled with either 1, 2 or 3 (not the columns -which are more than 3). These are also not ordered from 1-3 as you can see in the image but scattered throughout more than 3 columns across the data input.  Is there a way to structure this? 
Thank you Maria

Anonymous
Not applicable

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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.