Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I have a table that looks like this
And I have created 2 tables to create 2 independent filters.
Solved! Go to Solution.
Hi @Anonymous ,
Why not working correctly:
The reason why incorrectly is the MAX() function.When you choose Slicer "A", The result of Seller table filtered by the slicer is one row {"A"} (as the following), and also the result of ALLSELECTED(SellerList[Seller]).
But for the first row of Matrix visual, Apple, it has tow rows in its filter context.
This contributes the result of max(Fruits[Seller]) is "C", so "C" is not in {"A"}. result of if is 0.
Workaround:
We can try another algorithm to implement the retrieval of whether fruit exists in the table of choices from the slicerlist. Try the code below.
IsSeller =
VAR _fruit =
COUNTROWS( VALUES( Fruits[Seller] ) )
VAR _except =
COUNTROWS(
EXCEPT( VALUES( Fruits[Seller] ), ALLSELECTED( SellerList[Seller] ) )
)
VAR _r = _fruit - _except
RETURN
IF( _r > 0, 1, 0 )
result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Why not working correctly:
The reason why incorrectly is the MAX() function.When you choose Slicer "A", The result of Seller table filtered by the slicer is one row {"A"} (as the following), and also the result of ALLSELECTED(SellerList[Seller]).
But for the first row of Matrix visual, Apple, it has tow rows in its filter context.
This contributes the result of max(Fruits[Seller]) is "C", so "C" is not in {"A"}. result of if is 0.
Workaround:
We can try another algorithm to implement the retrieval of whether fruit exists in the table of choices from the slicerlist. Try the code below.
IsSeller =
VAR _fruit =
COUNTROWS( VALUES( Fruits[Seller] ) )
VAR _except =
COUNTROWS(
EXCEPT( VALUES( Fruits[Seller] ), ALLSELECTED( SellerList[Seller] ) )
)
VAR _r = _fruit - _except
RETURN
IF( _r > 0, 1, 0 )
result:
Pbix in the end you can refer.
Best Regards
Community Support Team _ chenwu zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Create a measure with below code:-
isSeller =
var selected_value = VALUES(SellerList[Seller])
return IF(MAX(Fruits[Seller]) in selected_value,1,0)isFruit =
var selected_value = VALUES(FruitsList[Fruits])
return IF(max(Fruits[Fruits]) in selected_value ,1,0)Output:-
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Anonymous
Make sure there is no relationship between your new tables and main table.
Use Values rather than SUMMARIZE.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi, I followed the instructions but unfortunately it is not working
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 58 | |
| 51 | |
| 46 |