How to show data of previous working day?
For a stacked column chart on a dashboard, I count the number of applicable cases daily. The current formula shows NO DATA on Monday because TODAY(-1) is Sunday.
=COUNTIFS({Customer Escalation Region}, $Region@row, {Customer Escalation Request Reason}, "Close Gap", {Customer Escalation Request Date}, TODAY(-1))
I'm thinking about 'Record date via automation', 'convert the date with Weekday()', 'add If Weekday()=2, use TODAY(-3)'.
If there are good ways to show data of previous working day, please advise me.
Best Answer
-
Hi @Sachiko Kagami,
The WORKDAY function is what you're after here.
In your case, I think the following should work:
=COUNTIFS({Customer Escalation Region}, $Region@row, {Customer Escalation Request Reason}, "Close Gap", {Customer Escalation Request Date}, WORKDAY(TODAY(),-1)
This will do the check for yesterday, skipping weekends. Public holidays aren't automatically in there, but you can add these as per the link.
Hope this helps - if there are any issues then just post! 😊
Answers
-
Hi @Sachiko Kagami,
The WORKDAY function is what you're after here.
In your case, I think the following should work:
=COUNTIFS({Customer Escalation Region}, $Region@row, {Customer Escalation Request Reason}, "Close Gap", {Customer Escalation Request Date}, WORKDAY(TODAY(),-1)
This will do the check for yesterday, skipping weekends. Public holidays aren't automatically in there, but you can add these as per the link.
Hope this helps - if there are any issues then just post! 😊
-
-
No problem at all, glad to help!
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 62.9K Get Help
- 379 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 302 Events
- 33 Webinars
- 7.3K Forum Archives