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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
GaB_
Contributor
Contributor

TRAMOS DE DÍAS

¿Qué formula tengo que poner para tener tramos de días?

Por ejemplo:

0 a 15

16 a 30

31 a 60

61 a 90

90 a 180

más de 180 días

Gracias

Labels (1)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

 

if(fieldname>180,'180 days'

,if(fieldname>90,'91 to 180 Days'

,if(fieldname>60,'61 to 90 Days'

,if(fieldname>30,'31 to 60 Days'

,if(fieldname>15,'15 to 30 Days','0 to 15 days'))))) as DayGrouping

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

1 Reply
vinieme12
Champion III
Champion III

 

if(fieldname>180,'180 days'

,if(fieldname>90,'91 to 180 Days'

,if(fieldname>60,'61 to 90 Days'

,if(fieldname>30,'31 to 60 Days'

,if(fieldname>15,'15 to 30 Days','0 to 15 days'))))) as DayGrouping

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.