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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
amandabus21
Helper V
Helper V

Filtered Value

Hi, 

I used the Filtered Value on a measure:

 

FRB Status Math =
CALCULATE(
    [FRB Status],
    'TTrack_DailyIncidentTable'[NTD_Status] IN {
        "Major Mechanical System Failures (NTD)",
        "Other Mechanical System Failures (NTD)"} ,
        TTrack_DailyIncidentTable[NTD_Status] IN { "Equipment Failure / Roadcall"} ,
        MilesAndHours_Bus[Division] IN {"East County Garage", "Copley Park Garage", "South Bay Garage"} )
 
But I would like to it to also EXCLUDE " 2018,2019,2020,2021" from'Dim DimDate'[Merged]
 
How could i write that in?
3 REPLIES 3
FreemanZ
Super User
Super User

hi @amandabus21 

try like:

FRB Status Math =
CALCULATE(
    [FRB Status],
    'TTrack_DailyIncidentTable'[NTD_Status] IN {
        "Major Mechanical System Failures (NTD)",
        "Other Mechanical System Failures (NTD)"} ,
        TTrack_DailyIncidentTable[NTD_Status] IN { "Equipment Failure / Roadcall"} ,
        MilesAndHours_Bus[Division] IN {"East County Garage", "Copley Park Garage", "South Bay Garage"} ,
        NOT  'Dim DimDate'[Merged] IN {2018,2019,2020,2021}
)

thanks but getitng this errror: 

amandabus21_0-1678405748565.png

 

I dont have any 'Contains Row" in my measure.

aha, then try like:

FRB Status Math =
CALCULATE(
    [FRB Status],
    'TTrack_DailyIncidentTable'[NTD_Status] IN {
        "Major Mechanical System Failures (NTD)",
        "Other Mechanical System Failures (NTD)"} ,
        TTrack_DailyIncidentTable[NTD_Status] IN { "Equipment Failure / Roadcall"} ,
        MilesAndHours_Bus[Division] IN {"East County Garage", "Copley Park Garage", "South Bay Garage"} ,
        NOT  YEAR('Dim DimDate'[Merged]) IN {2018,2019,2020,2021}
)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.