Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
Solved! Go to Solution.
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 @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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
16 | |
13 | |
12 | |
11 | |
11 |
User | Count |
---|---|
19 | |
14 | |
14 | |
11 | |
9 |