Quantcast
Channel: AssetWise ALIM
Viewing all articles
Browse latest Browse all 6419

Forum Post: RE: EQL Report - CASE syntax

$
0
0
Please see our trainer's comment below: I don’t believe you can put a comparison in the WHEN clause. The comparison is between the value after CASE and the value within WHEN. Here is an example using class id: CASE ‘Class.Id” WHEN ‘50’ THEN ‘ADM’ WHEN ‘51’ THEN ‘SPEC’ ELSE ‘Unknown’ END I think to fix the CASE that you have presented, the User would need to do the date comparison in the CASE clause, coming up with a value (say, 0 or 1), and then the WHEN clauses would use those values. For example (the part in brackets is the date calculation I haven’t worked out): CASE [date calc using Attribute value & $Today to get 0 or 1] WHEN ‘0’ THEN ‘Earlier’ WHEN ‘1’ THEN ‘Later’ ELSE ‘TBD’ END

Viewing all articles
Browse latest Browse all 6419

Trending Articles



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