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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
arsenal1983
Creator
Creator

class function, limit of intervals

Hi,

I've made a class function with limit of intervals:

=if(IMEI_SALE.DEALER_PURCHASE_PRICE_NET > 3000 , '3000 +', Class(IMEI_SALE.DEALER_PURCHASE_PRICE_NET,800, 'PRICE'))

The problem is that the last interval from class function is from 2400 to 3200 while in reality is from 2400 to 3000. Is there any way to correct the value 3200 to 3000?

Przechwytywanie.PNG

Labels (1)
1 Reply
marcus_sommer
MVP
MVP

Try:

= if(IMEI_SALE.DEALER_PURCHASE_PRICE_NET > 3000 , '3000 +',      Class(IMEI_SALE.DEALER_PURCHASE_PRICE_NET,

          if(IMEI_SALE.DEALER_PURCHASE_PRICE_NET>= 2400, 600, 800), 'PRICE'))

But better would be to use '3200 +' or to change the interval-size to 750 - it's more logically.

- Marcus