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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives