Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Report using relative condition but omitting weekends

bryanc78
Tera Contributor

I'm looking to run a report that shows me all cases that have not been updated within the last 5 business days.  Obviously, if I run this report on Monday I have to deal with the weekend.

 

So, If I run the report today, 3/27, I should only see cases that were last updated  3/19 and earlier.  Is there a way to exclude weekends this way?

4 REPLIES 4

Jar
Tera Expert

Hi Bryanc78,
Checkout this post regarding the same request.

 

Solved: Exclude weekends from report condition - ServiceNow Community

bryanc78
Tera Contributor

I did see that but it's not working for me

 

bryanc78_0-1679932352338.png

When I use this condition, the record with the most recent Updated date is 3/22.  Not 3/20

AndersBGS
Tera Patron
Tera Patron

Hi @bryanc78 ,

 

I think you should be able to utilize a filter stating: not updated relative after 7 days ago, as there will always be 2 day weekend in between… so 5 days ago plus the weekend 2 days ago = 7 days ago.

 

if my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

That will work for something like 5 days.  But if I wanted to do say 2 days to look at my critical cases, excluding weekends, it will not work.

 

Guess I'll just keep updating my dates as needed