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

Forum Post: EQL Report - CASE syntax

$
0
0
I am developing a report that looks at Condition Report Status, where the user has the following requirements: CR Status - Defined as the CR (scheduled completion) due date compared to today’s date. The results will be ‘Past Due,’ ‘Pending,’ or ‘TBD.’ Past Due means today’s date is greater than the CR due date. Pending means today’s date is less than the CR due date. TBD means the CR due date has yet to be set (is null) I am trying to use a CASE statement, one that would look like this below (if I "translated the above requirements to EQL):    CASE 'Attributes["Global", "Scheduled Completion Date"].Value'    WHEN 'Attributes["Global", "Scheduled Completion Date"].Value $Today' THEN '1'    WHEN 'Attributes["Global", "Scheduled Completion Date"].Value $Today' THEN '2'    ELSE 'TBD'    END When I run this code, I get the correct number of rows/results but they are all 'TBD' - leads me to believe that the "calculation" of greater than or less than do not actually run, thereby ONLY fulfilling the ELSE requirement. Any ideas? Thanks

Viewing all articles
Browse latest Browse all 6419

Trending Articles