Forum Discussion

AnanthanR's avatar
AnanthanR
Icon for Helper I rankHelper I
1 year ago

Needs to calculate dynamic target quantity

Hello Everyone,

 

I am trying to create dyanmic Target qty from the dataset, but not getting correct value, in my dataset we have Target qty column

date, Model columns. needs to calculate the target qty for the day or month based on the slicer selection .

below is my dax query

DYNAMIC TARGET QTY =
COALESCE(
    SUMX(
        VALUES(WM_PRODUCTION_REPORT[MODEL]),
        CALCULATE(MAX(WM_PRODUCTION_REPORT[DETAILS TARGETQTY]))
    ),
    0
)
thanks 

 

1 Reply