Forum Discussion

psmith-nhs-inc's avatar
psmith-nhs-inc
Helper III
9 years ago
Solved

Date math problem: if (ExpectedDate<=date, QTY, 0)

I have a standard Date table, Sales table, and Incoming table. The Sales Table and Incoming Table both have QTY, and a Sales_Date for sales, and an Expected_Date for Incoming.   I plot daily sales...
  • Phil_Seamark's avatar
    Phil_Seamark
    9 years ago

    Hi psmith-nhs-inc

     

    Try this slight modification...

     

    Cumulative Incoming = CALCULATE(
    				SUM(Incoming[Incoming Qty]) ,
    				FILTER(
    					ALLSELECTED('Incoming'),
    					'Incoming'[Incoming Date]<=MAX('Dates'[Date])
    					)
    				)