Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Elin
Contributor II
Contributor II

Set analys

Hello!!

I need help excluding the Team_Kod values, instead of having them with me as now

 

Sum ({$<Ärendetyp={EKO1}, Team_Kod={"916-ÅR","928-ÅR","930-ÅR","940-ÅR","950-ÅR","960 ÅR"}>}Antal_Ärenden_Inkomna_R12

5 Replies
JuanGerardo
Partner - Specialist
Partner - Specialist

Hi @Elin, to exclude instead of select, you can use:

Sum ({$<Ärendetyp={EKO1}, Team_Kod-={"916-ÅR","928-ÅR","930-ÅR","940-ÅR","950-ÅR","960 ÅR"}>}Antal_Ärenden_Inkomna_R12

JG

Elin
Contributor II
Contributor II
Author

Hello again!!

It works fine, but I have missing values in Team_Kod that are not included in this code, how do I get them? 

/Elin

JuanGerardo
Partner - Specialist
Partner - Specialist

Just add them to the list, separated by commas.

JG

Elin
Contributor II
Contributor II
Author

Hello again ! I

have missing values in the dataset that disappear with this code, but I do not want to exclude them

For example, in this set analys, I get them Sum ({$<Ärendetyp={EKO1}>}Antal_Ärenden_Inkomna_R12)

But in this one they disappear even though I want missing values

Sum ({$<Ärendetyp={EKO1},Team_Kod-={"916-ÅR","928-ÅR","930-ÅR","940-ÅR","950-ÅR","960-ÅR"}>}Antal_Ärenden_Inkomna_R12)

JuanGerardo
Partner - Specialist
Partner - Specialist

With the -= option you exclude those values from your selections, and with += you include values. I though you wanted to exclude those values. Change -= to += and you will be including instead of excluding.

JG