Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Hi in the script level iam trying to replace the null va;ues in Dept by brand , can anyone suggest if below statement is correct ?
if(IsNull(Dept),'brand',Dept),
Try like:
if(IsNull(Dept),'brand',Dept) as Fieldname
Or, better to deal with not-null spaces or other invisible characters try like:
if(Len(Trim(Dept))=0,'brand',Dept) as Fieldname
Assuming Dept is a field and you want it's value to be called as 'brand'.
Try like:
if(IsNull(Dept),'brand',Dept) as Fieldname
Or, better to deal with not-null spaces or other invisible characters try like:
if(Len(Trim(Dept))=0,'brand',Dept) as Fieldname
Assuming Dept is a field and you want it's value to be called as 'brand'.
Yes Dept is a field and when ever there is null value in Dept it should be named as brand, if no null then as it is .
Have you tried the above solutions?
Hi Tresesco,
if(Len(Trim(Dept))>0,'brand',Dept) as Fieldname
with all respect, i'am perplexed with above condition that would give a desired output.
That shud be '=0' or '>0' ?
Regards,
Nitin.
You are spot on. Corrected my post above.
hahah...
we follow you..:)
Regards,
Nitin.
Hi,
try this:
if(len(Dept)<=0,'brand',Dept)
Thanks
Try this If(len(Dept)=0,Brand,Dept) as NewField,
Let me know if this is working else I will provide other solution.
Thanks
jaydeep
Hi tressco
you first statement worked fine
if(IsNull(Dept),'brand',Dept) as Fieldname