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
Anonymous
Not applicable

Showing a list without separators

Hi,

 

We have a field with a list that we want to show in Power BI.

Example field:

     A       dimension1;dimension2

     B       dimensionA;dimensionB;dimensionC

 

Result should be something like:

     A       dimension1

               dimension2

     B       dimensionA

              dimensionB

              dimensionC

 

Can somebody help me out with that?

Our can help me with another solution.

 

Thanks,

Davina

1 ACCEPTED SOLUTION
RichardJ
Responsive Resident
Responsive Resident

Hi Davina,

Theres a couple of options.

 

Option 1

If you go to the query editor and select Split Column by Delimiter as shown:

 

Split ColumnSplit Column

 

Choose to split by the Semi Colon if it isnt already selected

 

Split ColumnSplit Column

 

Select the Category Column as shown, then choose Unpivot Other Columns.

 

UnpivotUnpivot

 

The 'Category' and 'Value' columns show the information you requested.

 

ReviewReview

 

Option 2

Alternatively, another option is to use the 'Replace Values' command.

Select the Values Column, then choose 'Replace Values' to replace the semicolon with a Carriage Return and Line Feed.

 

Replace delimiter with Carraige Return and Line FeedReplace delimiter with Carraige Return and Line Feed

This will provide the data as shown if this is preferable.

 

RedultsRedults

Hopefully this answers your question @Anonymous - Its the first one i've answered on this forum so would appreciate if you could let me know.

 

Cheers,

Richard

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , In Data Transformation/Edit Query mode, You can split a column by Delimiter, Use Split into rows 


Refer for steps

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

RichardJ
Responsive Resident
Responsive Resident

Hi Davina,

Theres a couple of options.

 

Option 1

If you go to the query editor and select Split Column by Delimiter as shown:

 

Split ColumnSplit Column

 

Choose to split by the Semi Colon if it isnt already selected

 

Split ColumnSplit Column

 

Select the Category Column as shown, then choose Unpivot Other Columns.

 

UnpivotUnpivot

 

The 'Category' and 'Value' columns show the information you requested.

 

ReviewReview

 

Option 2

Alternatively, another option is to use the 'Replace Values' command.

Select the Values Column, then choose 'Replace Values' to replace the semicolon with a Carriage Return and Line Feed.

 

Replace delimiter with Carraige Return and Line FeedReplace delimiter with Carraige Return and Line Feed

This will provide the data as shown if this is preferable.

 

RedultsRedults

Hopefully this answers your question @Anonymous - Its the first one i've answered on this forum so would appreciate if you could let me know.

 

Cheers,

Richard

Anonymous
Not applicable

@RichardJThanks for your answer. Option 2 was what I needed.

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