Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF sentence give me strange results. WHY?

Hi people!

Pls consider this table:

Capture.PNG

Why does this expression give me two different results? I expected (20941,92+199) as total?

Best regards

Trond E

1 Solution

Accepted Solutions
fabio_vallone
Creator
Creator

=sum({$<[Project Type No.] = {'100', '200'}>}  [Allocated Hours])

View solution in original post

6 Replies
Anonymous
Not applicable
Author

Trond Erik

Could you please upload a sample qwv file? It will be much easier to figure out what's wrong?

Regards

MutliView

Not applicable
Author

try if(<conditions>, sum(Allocated_Hours) )

fabio_vallone
Creator
Creator

=sum({$<[Project Type No.] = {'100', '200'}>}  [Allocated Hours])

Not applicable
Author

Hmmm... but Why?

Thank you very mych!

Best regards
Trond E

fabio_vallone
Creator
Creator

why... i really don't know... all I know is set analysis work best within expressions.

hugs

Not applicable
Author

I wonder if we have write an If condition in sum

sum([{set_expression}][distinct][total[<fld {, fld}>]] expression)