Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have this Text Object that contains formula of IF-ELSE and aggregating a certain fields.
I can't see any result, just a plain dash(-) on Text Object. Can you help me out here?
Thanks in advance!
Hi Kevin,
Rewrite it as
Sum(if(Category = 'ADMIN',Hours))
Sum the if, don't if the sum.
Muthu has already given you an expression that will work and if you're comfortable with set analysis expression use that one. If you have an expression containing an 'if' using a set analysis expression instead will be quicker and when you're used to the syntax will be easier to read.
Cheers
Andrew
Hi Kevin,
Can you share your expression ?
Easier to advise .
Thanks.
Thanks!
Here it is:
=IF(Category = 'ADMIN', NUM(SUM(Hours))
Try this
=if(Category = 'ADMIN',NUM(SUM(Hours),'#,##0'),0)
Try this.
=sum({$<CATEGORY={ADMIN}>} HOURS)..
If the condition didnt satisfy it will automatically give 0, so there is no need of else condition here.
May be try
If (substringcount (GetFieldSelections (Category, ':'))>0,NUM(SUM(Hours),0)
Try this:
sum({<Category={'ADMIN'}>}Hours)
Hi Kevin,
Rewrite it as
Sum(if(Category = 'ADMIN',Hours))
Sum the if, don't if the sum.
Muthu has already given you an expression that will work and if you're comfortable with set analysis expression use that one. If you have an expression containing an 'if' using a set analysis expression instead will be quicker and when you're used to the syntax will be easier to read.
Cheers
Andrew