-
Re: Replace to zero
Devarasu R Dec 28, 2017 2:39 AM (in response to sony sing)Hi,
try below methods,
Method 1:
if(Len(groupvalue)<=0 or IsNull(groupvalue) or groupvalue='-',0,groupvalue)
Method 2: // best approach
Alt(Sum(groupvalue), 0)
Method 3: // best approach
try to define null variable like below
NULLASVALUE *;
SET NullValue ='NULL' ;
or
SET NullValue ='-' ;
Still if you have issue, i would suggest you to provide the sample mock data and expected output. Thanks
Hope this helps to you
Regards,
Deva
-
-
Re: Replace to zero
Devarasu R Dec 28, 2017 2:44 AM (in response to sony sing)Hi,
share you mock app or sample data with expected output. that would be easy for us to check and help you
-
-
-
Re: Replace to zero
arul settu Dec 28, 2017 2:38 AM (in response to sony sing)try this
if(isnull(groupvalue),'0',groupvalue)
-
-
Re: Replace to zero
pradosh thakur Dec 28, 2017 3:02 AM (in response to sony sing)All Solutions by Deva should work. if "group value" is a field then [groupvalue] if it is a label than replace group value with the expression.
if(len(trim(groupvalue))>0,groupvalue,0)
-
Re: Replace to zero
sony sing Dec 28, 2017 3:35 AM (in response to pradosh thakur)it also not working
and the filed having number values
-
Re: Replace to zero
pradosh thakur Dec 28, 2017 4:28 AM (in response to sony sing)all of the above solution should work unless we are missing something that is in the app. please post a sample . dummy data also will do .
-
-
-
Re: Replace to zero
Sunny Talwar Dec 28, 2017 4:37 AM (in response to sony sing)Is it null or is it missing.... I think it would not be possible to replace missing value with 0 in the chart itself. In order to do this you would probably need to generate missing data in the script