cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

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

Accepted Solutions
Highlighted
Advocate II
Advocate II

Re: Showing a list without separators

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 @dmoriau - 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

3 REPLIES 3
Highlighted
Advocate II
Advocate II

Re: Showing a list without separators

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 @dmoriau - 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

Highlighted
Super User IV
Super User IV

Re: Showing a list without separators

@dmoriau , 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/



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper II
Helper II

Re: Showing a list without separators

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

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors