Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I want to calculate the sum value whose the difference value is less than 0 in two year. Here comes my function, but it shows -, if I changed into >0, it will show the value, what's wrong with it?
if(sum(aggr($(V_CY Till_OR)-$(V_PY_Till_OR),CNOC))<0,sum(aggr(($(V_CY Till_OR)-$(V_PY_Till_OR)),CNOC)))
Try below
=sum( aggr(
if( $(V_PY_Till_OR)> $(V_CY Till_OR),$(V_CY Till_OR)-$(V_PY_Till_OR) )
,CNOC))
can you post a screenshot from the expression editor?
also what are variables V_CY Till_OR and V_PY_Till_OR
Pls take a look. Thank you so much
if I changed into >0, It will work. like below
If I select a customer whose difference value is less than 0, this function will show the value, if I don't select , it will show -
if(sum(aggr($(V_CY Till_OR)-$(V_PY_Till_OR),CNOC))<0,sum(aggr(($(V_CY Till_OR)-$(V_PY_Till_OR)),CNOC)))
Try below
=sum( aggr(
if( $(V_PY_Till_OR)> $(V_CY Till_OR),$(V_CY Till_OR)-$(V_PY_Till_OR) )
,CNOC))
wow, It works. But What's the reason?