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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Anonymous
Not applicable

Splitting Column And Show Containing

Hello,
I need help with how to split a column and then create a filter based on the splitted values. 
The column looks like this:

Teams
aaa
aaa, bbb, ccc

bbb, ccc,

bbb
aaa, bbb

And I want to create a slicer so i can filter on either of the teams and I if I filter the activity on another visual, I want to show which teams are participating (i.e. when i filter to the activity on third row, I want to show a multi row card with only bbb and ccc)

Thank you very much for your help!

1 ACCEPTED SOLUTION
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous 

 

you could use Split Column by Delimiter in Power Query and you could create a bridge table with it.

 

SplitByDelimiterRow20220427.png

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


View solution in original post

8 REPLIES 8
mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous 

 

you could use Split Column by Delimiter in Power Query and you could create a bridge table with it.

 

SplitByDelimiterRow20220427.png

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

@mwegener But then I get duplicates of all values that had more than one team in the table, which ruins my other calculations. Or am I missing something?

mwegener
Most Valuable Professional
Most Valuable Professional

@Anonymous this is a many-to-many relationship, here you have to work with a bridge table. You can find more information in the Microsoft Docs.

https://docs.microsoft.com/en-us/power-bi/guidance/relationships-many-to-many?WT.mc_id=DP-MVP-5004288

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

@mwegener 
I'm sorry but I don't get it. 
I got a new column in my main table with all rows with several teams got duplicated with the amounts of teams that were participating. 
Should I create a new table?
Can you create a table where the relationship is CONTAINSSRING?

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

yes you need an additional table that assigns teams to team groups, since this is a many-to-many relationship.
If you provide sample data, I can show it with an example.

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Anonymous
Not applicable

I managed to do it 🙂
Thank you so much for your help!

amitchandak
Super User
Super User

@Anonymous , The best way, is to split it into rows in power query using split by delimiter

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
Anonymous
Not applicable

@amitchandak But don't I get a lot of columns that way? How do I then add a slicer for all of them? And if I have a lot of rows, isn't it expensive computationally to add columns?

Helpful resources

Announcements
Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.