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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

dealing with column which has mulitple values

hi guys

 

i am facing a problem in powerbi 

 

see me data

 

angle_Fbi_0-1724340732488.png

 

 

 

 

when i use slicer in powerbi it shows me the excat values under cars field see below

 

angle_Fbi_1-1724340851405.png

 

 

 

actually i need my slicer to has unique values like 

Toyota

Mazda

Ford

Nissan

GMC

 

 

and based on my selection it will impact the customer name

 

i was thinking for a way to do that but actually i didnt get any result

 

is there any way to solve the above problem without spliting the column with delimeters?  because splitting the data it will not fix the issue up to my knowledge

 

 

 

1 ACCEPTED SOLUTION
audreygerred
Super User
Super User

Hello! In Power Query you are going to want to split by delimeter, then unpivot other columns. This way you wind up with a table that looks like this:

audreygerred_1-1724341690585.png

Instead of this:

audreygerred_2-1724341718038.png

With it in the new format, you can have your slicer do what you wanted:

If I click Mazda, we can see jean and john appear.

audreygerred_3-1724341775049.png

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

5 REPLIES 5
audreygerred
Super User
Super User

Hello! In Power Query you are going to want to split by delimeter, then unpivot other columns. This way you wind up with a table that looks like this:

audreygerred_1-1724341690585.png

Instead of this:

audreygerred_2-1724341718038.png

With it in the new format, you can have your slicer do what you wanted:

If I click Mazda, we can see jean and john appear.

audreygerred_3-1724341775049.png

 

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

thank you for you reply just i need to know once i do the step ( unpivot other colum ) on which column shoud i select ?

I was on the name column when I did that step. Here is the M code:

let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WykpMzlbSUQrJr8wvSdTxyywuTszTcc5ILSvKz0ktUYrVASrJz8gDKvFNrEpJ1IEohIgn5qYWAyWgmtx9nXXc8otSoHLF+SBNCIHURLghYIGiTLDFcKvgJscCAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [Name = _t, Cars = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Name", type text}, {"Cars", type text}}),
#"Split Column by Delimiter" = Table.SplitColumn(#"Changed Type", "Cars", Splitter.SplitTextByDelimiter(",", QuoteStyle.Csv), {"Cars.1", "Cars.2", "Cars.3"}),
#"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Cars.1", type text}, {"Cars.2", type text}, {"Cars.3", type text}}),
#"Unpivoted Other Columns" = Table.UnpivotOtherColumns(#"Changed Type1", {"Name"}, "Attribute", "Value"),
#"Removed Columns" = Table.RemoveColumns(#"Unpivoted Other Columns",{"Attribute"})
in
#"Removed Columns"





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Anonymous
Not applicable

god bless you it works with me

You are very welcome! Happy to help!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors