Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to use "sum(if(isnull(Department)=0,Sales))", but how can I achieve by useing Set Analysis?
hi,
You check the null condition in script. This will make the expression easy at reporting level.
If(isnull(Fieldname) =-1,'Y','N') as Indicator
at expr:
sum({<Indicator ={"Y"}>} Amount)
Thank you Deepak Kurup, but how can you achieve it without creating a new field "Indicator"?
Hello, John
try this:
sum({$<[Department]={"=Len(Department) = 0"}>} Sales)
or
sum({$<[Department]={""}>} Sales)
sorry, for you task it will be like this:
sum({$<[Department]={"=Len(Department) > 0"}>} Sales)
Thank you, sqarur.
I think the Len function only works when your value is not really a null, but an empty string.
The difference is subtle, but there IS a difference.