Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3309

Re: IF or CASE Statement

$
0
0

Hi Andrew,

 

There could be a possibility that the column "DAYS" might be getting aggregated.

 

  • Change the DAYS to be attribute(may be like Varchar 10)
  • In Calculated column, type cast the DAYS field

 

if(decfloat("DAYS")<1.5,'Less than 1 day',

 

if(decfloat("DAYS")<3.5,'Less than 3 days',

 

if(decfloat("DAYS")<5.5,'Less than 5 days',

 

if(decfloat("DAYS")<7.5,'Less than 7 days',

 

if(decfloat("DAYS")>=7.5,'> 7 days',

 

'No Info Provided')))))


Viewing all articles
Browse latest Browse all 3309


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>