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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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