Showing results for 
Search instead for 
Did you mean: 
Helper III
Helper III

Service Desk Template "Tickets older than 3 days" fitlering


I am using the Service Desk template and noticed that the ticket filtering for "Tickets older than 3 days" doesnt work.
One day old tickets appears in the "3day old Tieckets" filtering.
As I could not find any solution for this issue, I try my luck here.

I'm not able to figure out what to change / add to make this work.

please help

many thanks in advance

If(ThisItem.TicketTypes="All tickets";UpdateContext({type:"All"});If(ThisItem.TicketTypes="New tickets";
UpdateContext({type:"New"});If(ThisItem.TicketTypes="Tickets in progress";UpdateContext({type:"In progress"});
If(ThisItem.TicketTypes="Tickets closed";UpdateContext({type:"Closed"});If(ThisItem.TicketTypes="Tickets on hold";
UpdateContext({type:"On hold"}))))));;

If(ThisItem.TicketTypes="Tickets older than 3 days";     //<--------- this 
UpdateContext({datetype:Text(DateAdd(Today(); -3));type:"Tickets older than 3 days"});    //<--------- this

If(ThisItem.TicketTypes="Tickets closed today";UpdateContext({datetype:Text(Today());type:"Tickets closed today"});
If(ThisItem.TicketTypes="Tickets opened today";UpdateContext({datetype:Text(Today());type:"Tickets opened today"}))))


If(type="All";Tickets;If(type="Tickets older than 3 days";   //<------- starts here
Filter(Tickets; DateCreated <> datetype && DateCreated <>Text(Today());
DateCreated <> Text(DateAdd(Today(); -2));
DateCreated <> Text(DateAdd(Today(); -1))|| DateClosed <> datetype && DateClosed <> Text(Today());
DateClosed <> Text(DateAdd(Today(); -2));DateClosed <> Text(DateAdd(Today(); -1)));
If(type="Tickets opened today";Filter(Tickets;datetype in DateCreated);
If(type="Tickets closed today";Filter(Tickets;datetype in DateClosed);Filter(Tickets;type in Status)))))

Community Support
Community Support

Hi @Unbihexium ,


I test it and it works ok on my side.



Best Regards.




Hi Yumia
Thanks for your reply.
Unfortunately its not working, I've tried again with a brand new created template, added a ticket in the DB from yesterday and as you can see in the screenshot the ticket appears in the "3 days old tickets" which should be visible at the earliest on 03/17/2019.


Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (50,401)