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
rshifflet
Frequent Visitor

Delimitate Column into Single Column

This may be a very simple thing, so please excuse my ignorance. I will try and articulate this the best that I can. When I go to edit my quiries, I have several columns with values that are comma delimited. However, when I apply these columns to a chart, or graph, it treats each combined text as a unique value. 

 

 1 (2).PNG1.PNG

I believe that I need the be able to have the data line up like below, in order to get the chart's to break apart by the unique values. 

2.PNG4.PNG

I know that I can split each column by the coma delimeter into multiple columns, however that could be up to 30 columns. When I try and add each column into the values to plot, I can get a graph but I can't get it to slice all the other surounding graphs. 


Is there a simple way to break the values apart at the coma and have them stack in the same column rather than splitting into multiple colums? That way all I have to do is "Fill Down" by the unique identifier and everyting slices just fine. I hope I'm making sence. 

 

Aaron 

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi,

 

According  to your description, you want to spilt the “LSR’s “ column by “,” and merge them to one column, right?

 

If as I said, you can follow below steps:

 

Source table:

Capture4.PNG
 

1. Open the edit query and duplicate the base table:

 

Capture5.PNG
 

2. Right-Click on LSR’s and choose the “spilt column” -> “By Delimiter”:


 Capture6.PNG

 

Capture7.PNG 

 

3.All select the columns and choose the “Unpivot Columns”:
 

Capture8.PNGCapture9.PNG 

 

4.Modify the formula of "Unpivot Columns":

 

Table.UnpivotOtherColumns(#"Changed Type1", {}, "Attribute", "Value")[Value]

 

Capture10.PNG
 

5. Close and apply the change, then create a visual.

 

Capture11.PNG
 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi,

 

According  to your description, you want to spilt the “LSR’s “ column by “,” and merge them to one column, right?

 

If as I said, you can follow below steps:

 

Source table:

Capture4.PNG
 

1. Open the edit query and duplicate the base table:

 

Capture5.PNG
 

2. Right-Click on LSR’s and choose the “spilt column” -> “By Delimiter”:


 Capture6.PNG

 

Capture7.PNG 

 

3.All select the columns and choose the “Unpivot Columns”:
 

Capture8.PNGCapture9.PNG 

 

4.Modify the formula of "Unpivot Columns":

 

Table.UnpivotOtherColumns(#"Changed Type1", {}, "Attribute", "Value")[Value]

 

Capture10.PNG
 

5. Close and apply the change, then create a visual.

 

Capture11.PNG
 

Regards,
Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Xiaoxin_Sheng,

 

Thank you so much for your solution. It is exactly what I was looking for. 

 

Greg_Deckler
Super User
Super User

Split into two columns on comma. Make a hierarchy, Column1 at the top, Column2 below it and use that in your visual. This will activate drill down capabilities. Alternatively, you can use two treemaps, one for Column1 and one for Column2. Clicking on the Column1 treemap will automagically filter the other treemap.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

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.