Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum if - what's wrong with my expression?

Hello

I was wondering what's wrong with my expression?

sum(if([Tariff range]='No tariff',({<[Application Status]={'C/F','U/F'}>} [FTE dashboard])))

There is an error and I am pretty sure it's something to do with the [Application Status]....'U/F bit,, as it is work fine without this part i.e. sum(if([Tariff range]='No tariff',[Stprog Count FTE])).

Any ideas?

Thanks

Ewa

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try

sum({<[Application Status]={'C/F','U/F'}>} if([Tariff range]='No tariff',[FTE dashboard]))


or


sum({<[Application Status]={'C/F','U/F'}, [Tariff range] = {'No tariff'}>}[FTE dashboard])

View solution in original post

7 Replies
andrespa
Specialist
Specialist

Hi Ewa, try:

if([Tariff range]='No tariff', sum({<[Application Status]={'C/F','U/F'}>} [FTE dashboard]))

swuehl
MVP
MVP

Try

sum({<[Application Status]={'C/F','U/F'}>} if([Tariff range]='No tariff',[FTE dashboard]))


or


sum({<[Application Status]={'C/F','U/F'}, [Tariff range] = {'No tariff'}>}[FTE dashboard])

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi Ewa,

sum({<[Application Status]={'C/F','U/F'}, [Tariff range]={'No tariff'}>} [FTE dashboard])


Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!
luis2793
Partner - Contributor
Partner - Contributor

Hello Ewa.

Please try with this expression:

if([Tariff range]='No tariff',sum({<[Application Status]={'C/F','U/F'}>} [FTE dashboard]))

Not applicable
Author

Thanks Andres, unfortunately this suggestion did not work for me.

Not applicable
Author

Swuehl

Thanks very much, the first suggestion solved the problem, brilliant!

oknotsen
Master III
Master III

If your question is now answered, please flag the Correct Answer.

If not, please make clear with which part of this topic you still like to get help .

May you live in interesting times!