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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Emoes
Helper I
Helper I

Add extra Filter measure

Hello,

I have a table called "IT Risk List"

On that Table I'm using the following Measure:

msRISK-Backlog =
var em = ENDOFMONTH(Dates[Date])
var f = filter(all('IT Risk List'),'IT Risk List'[Created]<=em)
var g = filter(all('IT Risk List'),coalesce('IT Risk List'[Date Closed],em+1)<=em)
return countrows(f)-countrows(g)This works perfectly.

 

But on this measure, I'm unable to filter.

I would like to remove two statuses called:

"Annual Audit

"Closed"

So From the 'IT Risk List'[status] I would like to remove the two statuses but I can't get the measurements right.

Can someone please help me?

 

 

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Emoes 

please try

msRISK-Backlog =
VAR em =
    ENDOFMONTH ( Dates[Date] )
VAR f =
    FILTER (
        ALL ( 'IT Risk List' ),
        'IT Risk List'[Created] <= em
            && NOT ( 'IT Risk List'[status] IN { "Annual Audit", "Closed" } )
    )
VAR g =
    FILTER (
        ALL ( 'IT Risk List' ),
        COALESCE ( 'IT Risk List'[Date Closed], em + 1 ) <= em
            && NOT ( 'IT Risk List'[status] IN { "Annual Audit", "Closed" } )
    )
RETURN
    COUNTROWS ( f ) - COUNTROWS ( g )

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Emoes 

please try

msRISK-Backlog =
VAR em =
    ENDOFMONTH ( Dates[Date] )
VAR f =
    FILTER (
        ALL ( 'IT Risk List' ),
        'IT Risk List'[Created] <= em
            && NOT ( 'IT Risk List'[status] IN { "Annual Audit", "Closed" } )
    )
VAR g =
    FILTER (
        ALL ( 'IT Risk List' ),
        COALESCE ( 'IT Risk List'[Date Closed], em + 1 ) <= em
            && NOT ( 'IT Risk List'[status] IN { "Annual Audit", "Closed" } )
    )
RETURN
    COUNTROWS ( f ) - COUNTROWS ( g )

Hi Tamerj1,

 

Super, you helped me out.

Maybe easy for you but I could not create/understand it.

Thanks again, this works perfectly.

 

Emoes

Helpful resources

Announcements
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!

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.