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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
sunilbeckham
Helper I
Helper I

Switch or If condition in field parameters

Hello,

 

I created a field parameter:

Graduation Period = {
    ("On Time Graduation Division", NAMEOF('Graduation Rate'[On Time Graduation Division]), 0,"On Time Graduation"),
    ("On Time Graduation Province", NAMEOF('Graduation Rate'[On Time Graduation Province]), 1,"On Time Graduation"),
    ("Extended Time Graduation Division", NAMEOF('Graduation Rate'[Extended Time Graduation Division]), 2, "Extended Time Graduation"),
    ("Extended Time Graduation Province", NAMEOF('Graduation Rate'[Extended Time Graduation Province]), 3, "Extended Time Graduation")
}
 
After that I'm using the default column (Value4) in my slicer that looks like this:

sunilbeckham_0-1684267143247.png

 

 

I want to know if there's any way I can use an If or Switch condition along with this slicer. Basically I'm trying to exclude some values from the column 'Cohort Year' that is coming from the table 'Graduation Rate' when the slicer option 'Extended Time Graduation' is selected (For example, when slicer Extended Time graduation is selected, don't show cohort years "2018-19", "2019-20").

Is there any way to achive that?

Thanks in advance.

0 REPLIES 0

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.