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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Mahamed_Qlik
Specialist
Specialist

category on alphnumeric dimension

Hi 

 

I have field named as " Customer_Number"

Cutomer_Number
W4000
W4100
W4300
W5000

W5500

 

I want to create category as below:
 if( Customer_Number)<4000,'Big',

  if( (Customer_Number)>=4000 and (Customer_Number)<5000,'Medium',

    if( (Customer_Number)>=5000 ,'Small','Others'))) As CustomerCategory;

kindly help;

Labels (1)
1 Reply
Or
MVP
MVP

Right(Customer_Number,4) should work, or you could just use use Mid(Customer_Number,2,1) and check if it's <4, exactly 4, or >4.