Forum Discussion

BrettM's avatar
BrettM
Frequent Visitor
2 years ago
Solved

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...
  • Anonymous's avatar
    Anonymous
    2 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 Kong

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.