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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rango de números

Estimados,

Tengo que clasificar ciertos números de una tabla dentro de un rango, especificamente:

0 a 5000

5001 a 8000

8001 a 12000

12001 a 99999

En la  tabla tengo N números, pero no sé cómo relacionarlos a los rangos.

Espero puedan ayudarme, muchas gracias!

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan

HI

     In script, you can try like this,

     Load *,if(numbers > 0 and numbers <= 5000,' 0-5000', if(numbers <= 8000,'5001-8000', if(numbers <=12000, '8001-12000',if(numbers <= 99999, '12001-99999')))) as Shorting from table;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

HI

     In script, you can try like this,

     Load *,if(numbers > 0 and numbers <= 5000,' 0-5000', if(numbers <= 8000,'5001-8000', if(numbers <=12000, '8001-12000',if(numbers <= 99999, '12001-99999')))) as Shorting from table;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Mayil,

Thanks for your answer... i worked!!

amunoz
Contributor
Contributor

Buenos días,

mi problema es parecido pero el rango lo tengo en una tabla y a no ser que realice una selección es incapaz de saber en que rango está  (las tablas no están relacionadas porque las necesito así).

Adjunto imagen de ejemplo.


Gracias de antemano.
Un saludo