Forum Discussion

Syndicate_Admin's avatar
Syndicate_Admin
Administrator
3 years ago
Solved

Column Filtering within Summarize

Good day I am working with a table created called OTIF Table to calculate fulfillments in complete deliveries and on time of purchase orders, I have created the OTIF Table with summarize where it bri...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

    You can update the formula of calculated table as below, please find the details in the attachment.

    OTIF Table = 
    SUMMARIZE (
        FILTER (
            'PurchaseOrderDetail',
            'PurchaseOrderDetail'[DateReceived]
                <= CALCULATE (
                    MAX ( 'PurchaseOrder'[EstShipDate] ),
                    FILTER (
                        'PurchaseOrder',
                        'PurchaseOrder'[PONumber] = EARLIER ( 'PurchaseOrderDetail'[PONumber] )
                    )
                )
        ),
        PurchaseOrderDetail[PONumber],
        "Qty Order", SUM ( PurchaseOrderDetail[QuantityOrdered] ),
        "Qty Received", SUM ( PurchaseOrderDetail[QuantityReceived] ),
        "Date Received", MAX ( PurchaseOrderDetail[DateReceived] ),
        "ETA", MAX ( PurchaseOrder[EstShipDate] )
    )

    PurchaseOrderDetail and PurchaseOrder table

    Summarize table OTIF Table

    Best Regards