Forum Discussion
Anonymous
2 years agoNot applicable
Cumulative Total
Hi Team, I am trying to create coulumn contain cummlative total of quantites(MGO1) and there are two conditions which i need to full fill: If delivery date <=today(week num) then i just want cu...
- 2 years ago
Is this what you are looking for?
o_belov
2 years agoAdvocate II
Anonymous , try to use this logic
Sales_YD =
VAR MaxDate = MAX (ZIBP_PO_MGRTN[DELIVERY_DATE])
VAR MaxYear = YEAR(MaxDate )
RETURN
CALCULATE(
[sum_of_MG01],
FILTER (
ALL( ZIBP_PO_MGRTN),
ZIBP_PO_MGRTN[DELIVERY_DATE] <= MaxDate
&& YEAR( ZIBP_PO_MGRTN[DELIVERY_DATE]) = MaxYear
)
)
- Anonymous2 years agoNot applicable
Hi o_belov ,
Thank you for your response.
I tried the solution though its working but i am getting the result of whole column.
See it's giving me cummulative total of whole column.
Thanks,
Ashishh