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
krnahabedian
Employee
Employee

When selecting multiple choices in a slicer, the table shows results that are either one, not both.

I have a geo region column that is comma delimeted in my main table. I did a row split in a new table and linked on ID. I used a slicer visual with the new geo data to filter the table visual. The slicer shows each option without commas. The table shows the original geo column info with commas. Great. That's how it needs to look. When 1 option is selected, the rows with that option within the comma list shows up. Great. When 2 options are selected, it acts as an "or" statement and shows rows with either one or the other options within. I need the slicer to act as an "and" filter. How can I do that?

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @krnahabedian ,

 

You may change the Cross filter direction of relationship between the main table and the new table from Single to Both , which will take these tables treated as a single table. Then when you make some changes in someone table, the other table objects will return corresponding matched result.  See more:Create and manage relationships in Power BI Desktop .

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

parry2k
Super User
Super User

@krnahabedian did you look at this post, if this does not solve the issue, share sample data, and expected output.

 

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

Visit us at https://perytus.com, your one-stop shop for Power BI related projects/training/consultancy.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

That's an interesting feature that will be useful on another part of my project, so thank you! I think my current problem is a bit different. Here's some more context.

 

I have my original table (OriginalData). Each company can have different numbers of geo regions covered. 

IDCompanyGeoCoverage
1Company 1USA,Australia,Asia
2Company 2USA,Asia
3Company 3Australia

 

I needed to split the geo coverages up to show only the distinct region options, not every combo as shown above. I made a new table (SplitGeo) and split GeoCoverage by rows. I linked it to OriginalData by ID 1:many and direction set to "both". 

IDGeoCoverage
1USA
1Australia
1Asia
2USA
2Asia
3Australia

 

I have SplitGeo in a slicer and it shows 3 options: USA, Australia, and Asia. Great. I have the OriginalData table as a table visual as I need to show that original data for the user. Currently, when I select USA and Australia, all 3 companies pop up in the table visual. I need it to show only Company 1 as it is the only one to contain USA AND Australia. What can I use to be able to fiter this way? I hope this makes sense!

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.