Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I would like to calculate the sum of items, but only when their title doesn't include a specific string.
for example, here is my list
Title | number |
---|---|
Banana | 20 |
Apple | 10 |
Apple Test | 15 |
Strawberry | 1 |
Mango testing | 2 |
test | 2 |
So basically what I want is to have only Banana + Apple +Strawberry and ignore anything that contains "test" in it.
It's just an example, my table got hundreds of lines.
I tried this
Sum({$<SubStringCount([Title], 'test')={0}>}[number]) but it doesn't seem to be working.
Any idea?
Thank you so much
Seems to be working for me here
May be this
Sum({<Title -= {'Test', 'test', 'TEST'}>}number)
Hello Sunny,
Thank you,
is there anyway to include all the possible syntax of "test", beacause I have also "testing" or "tester"
Thanks a lot,
My bad, try this
Sum({<Title -= {'*Test*', '*test*', '*TEST*'}>}number)
This one didn't work, it returned to me all the values, as '*' was actually considered as a character..
Oh are you on the most recent version of QlikView or Qlik Sense? Try with double quotes instead of single quotes
Sum({<Title -= {"*Test*", "*test*", "*TEST*"}>}number)
Yes, I'm on Qlik Sense, and actually title = or title -= didn't work neither, it didn't include for example 'Mango Testing and "Apple Test" 😕
"*Test*" is not excluding those two values? Really? Going to test it out now
Seems to be working for me here
Thank you so much Sunny, I tried it again and it's working fine. Perfect