Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a slicer with few items in it like A,B,C,D_Total,D, E,F,G. I have multi-selection option. However, I want to add a condition here. Whenever I select D and D_Total together, D should be disabled automatically and only D_Total should reflect the rest data in tab.
Solved! Go to Solution.
Hi @shikhavidyarthi ,
I suggest you to create an unrelated Dimitems table for slicer.
Measure:
Filter =
VAR _VALUES =
VALUES ( DimItems[Items] )
VAR _VALUESINCONDITION1 =
FILTER ( _VALUES, [Items] <> "D" )
RETURN
IF (
ISFILTERED ( DimItems[Items] ),
IF (
AND ( "D" IN _VALUES, "D_Total" IN _VALUES ),
IF ( MAX ( 'Table'[Items] ) IN _VALUES && MAX ( 'Table'[Items] ) <> "D", 1, 0 ),
IF ( MAX ( 'Table'[Items] ) IN _VALUES, 1, 0 )
),
1)
Add this measure into visual level filter and set it to show items when value = 1.
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @shikhavidyarthi ,
I suggest you to create an unrelated Dimitems table for slicer.
Measure:
Filter =
VAR _VALUES =
VALUES ( DimItems[Items] )
VAR _VALUESINCONDITION1 =
FILTER ( _VALUES, [Items] <> "D" )
RETURN
IF (
ISFILTERED ( DimItems[Items] ),
IF (
AND ( "D" IN _VALUES, "D_Total" IN _VALUES ),
IF ( MAX ( 'Table'[Items] ) IN _VALUES && MAX ( 'Table'[Items] ) <> "D", 1, 0 ),
IF ( MAX ( 'Table'[Items] ) IN _VALUES, 1, 0 )
),
1)
Add this measure into visual level filter and set it to show items when value = 1.
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
9 | |
7 | |
6 | |
5 |
User | Count |
---|---|
20 | |
11 | |
10 | |
9 | |
6 |