For more information, please refer to this announcement explaining best practices for getting answers to questions.
Need help with nested case statements
Summary
Need help with nested case statementsContent
I am trying to report the current status on a req. when the actual status is something else. I also need to look at another field I set up to change the currect status. I have the nested case statements below. The first case statement works fine by itself but when I add the second one, I get an error. Can anyone help? Thanks.
CASE WHEN "Requisition Status - Current"."Current Status" = 'Approved' OR "Requisition Status - Current"."Current Status" = 'Sourcing' THEN 'Approved and/or Sourcing' END ELSE
MAX(CASE WHEN "Submission Job Offer"."Status" = 'Accepted' OR "Submission Job Offer"."Status" = 'Approval in Progress' OR "Submission Job Offer"."Status" = 'Approved' OR "Submission Job Offer"."Status" = 'Draft' OR "Submission Job Offer"."Status" = 'Extended' OR "Submission Job Offer"."Status" = 'In Negotiation' THEN 'Active Offer' END)