Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

SUM when column contain a certain word

Hi,

I have the following expression:

 

SUM

(if(DIENSTJAAR <= DIENSTJAAR_TM, if(DIENSTJAAR >= DIENSTJAAR_VANAF, BEDRAG_BEGROOT)))

DIENSTJAAR stands for a year
BEDRAG_BEGROOT stands for a certain amount of money

Now hat i want to do is SUM BEDRAG_BEGROOT, but only where an other  text column (named OMSCHRIJVING) contains the word 'inhuur'.

Does somebody know what to do?

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

Hi,

at first pay attention to the ELSE expression that you have not specified in IF;

For The condition you want to add :

1) you can use set analysys

2) you can add the condition if(substringcount ( OMSCHRIJVING, 'inhuur')>0) that returns number of times the word 'inhuur' appear in OMSCHRIJVING

Hope it helps

View solution in original post

2 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Hi,

at first pay attention to the ELSE expression that you have not specified in IF;

For The condition you want to add :

1) you can use set analysys

2) you can add the condition if(substringcount ( OMSCHRIJVING, 'inhuur')>0) that returns number of times the word 'inhuur' appear in OMSCHRIJVING

Hope it helps

Not applicable
Author

Its working now, thanks!