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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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