Forum Discussion
BrettM
2 years agoFrequent Visitor
Previous Days Orders
We have a eComm program in place where we ship all orders received by 2 PM same day. This means when looking at orders the timing for "Today's orders needs to be calculated from 2:01 PM yesterday to...
- Anonymous2 years ago
Hi BrettM ,
You can try below formula:
FilteredOrders = CALCULATETABLE ( VALUES ( 'YourTable'[OrderID] ), FILTER ( 'YourTable', 'YourTable'[OrderTimestamp] >= NOW () - 1 + TIME ( 14, 0, 0 ) && 'YourTable'[OrderTimestamp] < NOW () - 1 + TIME ( 14, 0, 0 ) + 1 ) )Best Regards,
Adamk KongIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
amitchandak
Super User
2 years agoBrettM , Create a new date column using your date time column
Date 1 = if(Timevalue([DateTime]) > Time(14,0,0) , Datevalue([DateTime])+1, Datevalue([DateTime]))
BrettM
1 year agoFrequent Visitor
I may have not explained it well. Any orders received in the below-mentioned "Days/Hours Received" would belong to the "Processing Days". Example of how they are to be treated below.
| Processing Days | Days/Hours Received |
| Monday | Friday - 1:30 PM - Monday 1:29 PM |
| Tuesday | Monday - 1:30 PM - Tuesday 1:29 PM |
| Wednesday | Tuesday - 1:30 PM - Wednesday 1:29 PM |
| Thursday | Wednesday - 1:30 PM - Thursday 1:29 PM |
| Friday | Thursday - 1:30 PM - Friday 1:29 PM |