cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Frequent Visitor

## tickets backlog: DAX filter and slicer

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)``````

1 ACCEPTED SOLUTION
Frequent Visitor
ALLSELECTED() function did the trick.
Thanks a lot for the help!

``````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 )``````

2 REPLIES 2
Community Support

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.

Frequent Visitor
ALLSELECTED() function did the trick.
Thanks a lot for the help!

``````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 )``````

Announcements

#### Fabric certifications survey

Certification feedback opportunity for the community.

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors