Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi,
I have been trying to crate a slicer in which all condition need to be true.
Normally a slicer would use an OR condition in filtering and I need to to use an AND instead.
To give you an example I want to select accounts which have purchased specificl multiple products. Calling products Prod1, Prod2 and Prod3 if I create a slicer selecting Prod1 and Prod2 the list of account I have is for people having EITHER Prod1 or Prod2 while I need accounts having both.
Is there a workaround I can adopt?
Thanks
Are you sure about your statement? If you select product1 and then ctrl-select product2, you should see results for both product1 and product2
Sorry I might not have explained myself properly.
Yes if I ctrl-select the two products it shows both of them but works with a logic of either-or.
To give you an example If I select Prod1 alone it gives me 10137 records, Prod2 alone gives 381 records. Selecting both the records are 10313 as some records bought both Prod1 and Prod2. What I would like the slicer to do is to show me the 205 records owning both Prod1 and Prod2.
Is there any way to do so?
Can you provide details about the schema of the filtered table and its relation with the slicer?
This is the current schema. The table Owned has one line per account per product and it filters the Accounts one having one line per account.
OK, so you are trying to filter 1 side (Accounts) using the column AllProductsOwned(slicer) in the many side (Owned)? Is this correct?
Yes.
The name AllProductsOwned is misleading at it only contains one product per line (it was left from one of my tentatives)
Hi @Anonymous ,
Have you solved the problem with the suggestion of atif-hafeez ?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share a simple data sample which could reproduce your scenario so that we could help further on it.
Best Regards,
Cherry
I see. I think this is more of a modelling issue.
What i would suggest you do is,
I am sure you will get the correct counts.
Many experts suggest not using bi-directional filter except for some rare scenarios.
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
115 | |
113 | |
105 | |
95 | |
58 |
User | Count |
---|---|
174 | |
147 | |
136 | |
102 | |
82 |