Forum Discussion

PowerBIIE's avatar
PowerBIIE
Frequent Visitor
4 years ago

Last Delivered Date

Hi,

 

I need to create a report that shows what has been delivered filtered by date, which is easy but it does not show what has not been delivered as it does not have a date. So I need to create a calculated column, I saw that another post has this measure which is great but it's not what im looking for as if I use this in a column it retrieves the last date of the last order for all orders. 

 

last delivery date =

CALCULATE (

    MAX ( 'Delivery Information'[Delivery Date] ),

    ALL ( 'Delivery Information' ),

    'Delivery Information'[Order] IN DISTINCT ( Orders[Order] )

)

 

I have two tables, one called Orders with the order number, Order Qty and Ship Qty and another called OrderReceive with the Order Number, Ship Qty and Date Received.

 

I have merged the date from OrderReceive to Orders.

 

I need a calculated column for the last delivery date. Can anyone help me?

 

 

4 Replies

  • PowerBIIE's avatar
    PowerBIIE
    Frequent Visitor

    When I say the stuff not delivered, I am talking about partial deliveries, orders that have not been fully fulfilled

  • Icey's avatar
    Icey
    Icon for Community Support rankCommunity Support

    Hi PowerBIIE ,

     

    Have you tried to use RELATED() function like below to create a calculated column in table "Orders"?

    Related Date Received =
    RELATED ( 'OrderReceive'[Date Received] )
    

     

     

    Best Regards,

    Icey

     

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