Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
jonesbrown
Creator
Creator

What is Class function where we use give  me an example

Hi All

I am new to Qlikview

What is Class function where we use give  me an example

plz help.

Labels (1)
2 Replies
joseph_morales
Creator III
Creator III

Hello @jonesbrown 

You can read the Qlik Help page. In the link you can find apart from the description of the function, also examples of how to use the function.

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Scripting/Condi...

Best Regards,
Joseph Morales
ramasaisaksoft

Hi ,

 

Class is alternative method to if to creates age or buckets. see below

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'