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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Grouping

Hi guys/gals,

Please refresh my memory. I need to display the number of employees per age group:

Example:

20 <= x < 30

But I can;t remember which function to use 🙂

Regards,

Werner

1 Solution

Accepted Solutions
Not applicable
Author

Hi Werner,

look for "CLASS()"!!!

Good luck!

Rainer

View solution in original post

4 Replies
Not applicable
Author

Hi Werner,

look for "CLASS()"!!!

Good luck!

Rainer

Not applicable
Author

Super!!!

Thx.

Not applicable
Author

Hi

When i read from reference manual couldn't understand the concept. could you please tell me how it works?

class( expression, interval [ , label [ , offset ]] )

Creates a classification of expressions. The bin width is determined by the number set as interval. The result is shown as a<=x<b, where a and b are the upper and lower limits of the bin. The x can be replaced by an arbitrary string stated in label. 0 is normally the default starting point of the classification. This can be changed by adding an offset.

Examples:

class( var,10 ) with var = 23 returns '20<=x<30'

class( var,5,'value' ) with var = 23 returns '20<= value <25'

class( var,10,'x',5 ) with var = 23 returns '15<=x<25'

-Raghu.

Not applicable
Author

Hi,

see the attached example.

Good luck!

Rainer