Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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!
Solved! Go to Solution.
Hi @Anonymous
you could use Split Column by Delimiter in Power Query and you could create a bridge table with it.
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
Hi @Anonymous
you could use Split Column by Delimiter in Power Query and you could create a bridge table with it.
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
@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?
@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.
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
@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?
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.
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
I managed to do it 🙂
Thank you so much for your help!
@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?
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 50 | |
| 34 | |
| 32 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 64 | |
| 64 | |
| 41 | |
| 27 | |
| 24 |