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

Expressions - right formula

Hello again,

this is my "formula":

Count(DISTINCT{<[Klasa artikla]={A}>} {<[Klasa artikla]={B}>} {<[Klasa artikla]={C}>} {<[Klasa artikla]={D}>} {<[Predgrupa artikla]={000}>}if(WildMatch(COMMISSSALESGROUP,KOM), ITEMID))

The marked is a series of numbers 000 - 999. Is there a possibility, to include in this formula a range?

1. Look at all "Predgrupa artikla" between 000 and 499

2. Exclude all "Predgrupa artikla" between 000 and 499

Thank you all for your help.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hi,

Yes, if the values are numeric this should work:

Count(DISTINCT{< [Klasa artikla] = {'A', 'B', 'C', 'D'}, [Predgrupa artikla] -= {">=000<=499"} >} if(WildMatch(COMMISSSALESGROUP, KOM), ITEMID))

That will use the set formed by values A-D in Klasa artikla and values not between 000 and 499.

Hope that helps.

Miguel

View solution in original post

2 Replies
Miguel_Angel_Baeyens

Hi,

Yes, if the values are numeric this should work:

Count(DISTINCT{< [Klasa artikla] = {'A', 'B', 'C', 'D'}, [Predgrupa artikla] -= {">=000<=499"} >} if(WildMatch(COMMISSSALESGROUP, KOM), ITEMID))

That will use the set formed by values A-D in Klasa artikla and values not between 000 and 499.

Hope that helps.

Miguel

Not applicable
Author

I love you 😃

Thank you very much.