5 Replies Latest reply: Feb 2, 2017 1:08 AM by Sangeetha S RSS

    Is it possible to use Set Analysis inside IF condition

    Haikuo Yu

      I would like to use a Set Analysis inside IF condition, however, it does not work.

      sum( {<  [STATE] ={ 'AK'}> }    my_value), this expression with Set Analysis works.

      However, after I put it inside the following IF condition in the map expression part, it does not work any more.


      if ( sum( {<  [STATE] ={ 'AK'}> }    my_value) > 0.3, red(), blue()  )


      Any suggestion is appreciated!