Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

multiple conditional slicers

Hello everybody,

 

image.png

have the following simplified scenario,  I would like to be able to select columns (column 1 or column 2) first and then select operations (max or min). The Model and the Data looks as follows:

image.pngimage.pngimage.png

 

image.png

But as soon as I select column1 the operations slicer only shows one option the 'min', although min is not selected the min shows up...

image.png

how could it be realised that max does not disappear ... thx 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@SteveCampbell  ok thanks for the hint

measure3 = IF(
SELECTEDVALUE(SelectColumn[selection]) = "column 1";
SWITCH(
    TRUE();
    VALUES(SelectOperation[condition 2]) = "min"; MINX(numbers; numbers[Column1]);
    VALUES(SelectOperation[condition 2]) = "max"; MAXX(numbers;numbers[Column1])
)
;IF(
        SELECTEDVALUE(SelectColumn[selection]) = "column 2";
        SWITCH(
            TRUE();
            VALUES(SelectOperation[condition 2]) = "min"; MINX(numbers; numbers[Column2]);
            VALUES(SelectOperation[condition 2]) = "max"; MAXX(numbers;numbers[Column2])
        )
        ))

View solution in original post

4 REPLIES 4
SteveCampbell
Memorable Member
Memorable Member

"SelectColumn" and "SelectValue" are in the same table, so they are filtering each other. Best practice, would to be to put them in two seperate tables.

 

You could add a cartesian join, but this may become more difficult to manage if you add more columns or values (such as average, sum etc).

 

 



Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Anonymous
Not applicable

@SteveCampbell after putting them in two separate tables. I cannot select the columns from a separate table. I get an error as shown in the picture.

image.png

SelectColumn[selection] refers to a column, so it finds it difficult to compare to one value.

 

Try replacing with:

SELECTEDVALUE( SelectColumn[selection] )


Did I answer your question? Mark my post as a solution! Proud to be a Super User!


Connect with me!
Stay up to date on  
Read my blogs on  



Anonymous
Not applicable

@SteveCampbell  ok thanks for the hint

measure3 = IF(
SELECTEDVALUE(SelectColumn[selection]) = "column 1";
SWITCH(
    TRUE();
    VALUES(SelectOperation[condition 2]) = "min"; MINX(numbers; numbers[Column1]);
    VALUES(SelectOperation[condition 2]) = "max"; MAXX(numbers;numbers[Column1])
)
;IF(
        SELECTEDVALUE(SelectColumn[selection]) = "column 2";
        SWITCH(
            TRUE();
            VALUES(SelectOperation[condition 2]) = "min"; MINX(numbers; numbers[Column2]);
            VALUES(SelectOperation[condition 2]) = "max"; MAXX(numbers;numbers[Column2])
        )
        ))

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors