Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
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.

Labels (1)
1 Solution

Accepted Solutions
Miguel_Angel_Baeyens
Support
Support

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
Support
Support

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.