Jump to content
We've recently updated our Privacy Statement, available here ×

robert.j

Members
  • Posts

    3
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by robert.j

  1. Dear All,

    I am trying to create a domain calculated field that has case statement, i am trying the below statement for the calculated field

    case
    when column1*Column2*Column3/1000000000*2.5*to_number(substr(Column4,2,3)) between 0 and 0.35 then '0.25 Ton'
    when column1*Column2*Column3/1000000000*2.5*to_number(substr(Column4,2,3)) between 0.351 and 0.85 then '0.5 Ton'
    when column1*Column2*Column3/1000000000*2.5*to_number(substr(Column4,2,3)) between  between 0.851 and 1.35 then '1 Ton'
    when column1*Column2*Column3/1000000000*2.5*to_number(substr(Column4,2,3)) between  between 1.351 and 2.25 then '2.0 Tons'
    when column1*Column2*Column3/1000000000*2.5*to_number(substr(Column4,2,3)) between  > 2.25 then '2.5 Tons'
    end

    this query is working fine in oracle, but when i use this statement in calculated field it was showing as "Cannot evaluate expression"

    Where i am making the mistake or how to make this above statement possible in Jaspersoft?

    Kindly guide me...

    Thanks in Advance,

    Robert J

×
×
  • Create New...