Hi guys!
I want to creare dashboard for IT tickets backlog with slicer denepding on ticket's urgency.
I have simple data file looking like on screenshot below. I created a dashboard which show amount of created, closed and backlog tickets in certain month (thanks to community) with Date table. DAX formula for backlog also below.
But i also want to be able to filter my backlog charts via slicer visual, and see amount of backlog tickets by urgency. But it doesn't work, as i use filter(all) in DAX. Could someone please help me to understand how can i achieve this goal?
Thanks!
backlog =
var em = ENDOFMONTH('Calendar'[Date])
var f = filter(all(Jira),Jira[creation date]<=em)
var g = filter(all(Jira),coalesce(Jira[resolution date],em+1)<=em)
return countrows(f)-countrows(g)
Solved! Go to Solution.
Hi @v-rzhou-msft!
backlog =
VAR em =
ENDOFMONTH ( 'Calendar'[Date] )
VAR f =
FILTER ( ALLSELECTED( Jira ), Jira[creation date] <= em )
VAR g =
FILTER (
ALLSELECTED( Jira ),
COALESCE ( Jira[resolution date], em + 1 ) <= em
)
RETURN
COUNTROWS ( f ) - COUNTROWS ( g )
Hi @IT_inter ,
According to your statement, I think you can try ALLEXCEPT() function instead of ALL() in your code.
backlog =
VAR em =
ENDOFMONTH ( 'Calendar'[Date] )
VAR f =
FILTER ( ALLEXCEPT ( Jira, Jira[urgency] ), Jira[creation date] <= em )
VAR g =
FILTER (
ALLEXCEPT ( Jira, Jira[urgency] ),
COALESCE ( Jira[resolution date], em + 1 ) <= em
)
RETURN
COUNTROWS ( f ) - COUNTROWS ( g )
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-rzhou-msft!
backlog =
VAR em =
ENDOFMONTH ( 'Calendar'[Date] )
VAR f =
FILTER ( ALLSELECTED( Jira ), Jira[creation date] <= em )
VAR g =
FILTER (
ALLSELECTED( Jira ),
COALESCE ( Jira[resolution date], em + 1 ) <= em
)
RETURN
COUNTROWS ( f ) - COUNTROWS ( g )
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
105 | |
72 | |
68 | |
47 | |
47 |
User | Count |
---|---|
161 | |
85 | |
76 | |
68 | |
67 |