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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Quiny_Harl
Advocate III
Advocate III

Create a slicer based on separate parts of a string

This is my table:

 

Quiny_Harl_0-1598963452204.png

Each ID has several markets separated by coma. I need a slicer where the entries will be like 1. IT 2. UK 3. GR, instead of the whole string.

1 ACCEPTED SOLUTION
Pragati11
Super User
Super User

Hi @Quiny_Harl ,

 

You can do following:

  1. Go to Query Editor
  2. Select your "Main Markets" column
  3. Click on Transform --> Split Column --> By Delimiter  as shown below:Pragati11_1-1598964257392.png

You will end up with multiple columns, having all the values from "Main Markets" column; that are now split by ",". Use these columns as filter on your report.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Quiny_Harl , try split of the column into rows or column if that can help

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
vanessafvg
Super User
Super User

Are you wanting to split them into separte columns, or in the same column but in separate lines? in power query (transform data option) you can split by delimimiter using your comma (,) to create columns.




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Greg_Deckler
Community Champion
Community Champion

@Quiny_Harl - You will have to split that column out and then unpivot the resulting columns in order to get something that you could use in a slicer.



Follow on LinkedIn
@ 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!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Pragati11
Super User
Super User

Hi @Quiny_Harl ,

 

You can do following:

  1. Go to Query Editor
  2. Select your "Main Markets" column
  3. Click on Transform --> Split Column --> By Delimiter  as shown below:Pragati11_1-1598964257392.png

You will end up with multiple columns, having all the values from "Main Markets" column; that are now split by ",". Use these columns as filter on your report.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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