有人可以帮助我在Informatica PowerCenter中的表达式转换中编写以下案例陈述吗?
Case When STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null and BI_Outcome__c is null then 'PA Required'
when STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null
Then Decode (BI_Outcome__c, 'PA Appeal Pending', 'PA Appeal Required','PA Pending','PA Required',BI_Outcome__c)
when STATUS_REASON_CODE in ('PA Appeal Approved', 'PA Approved') and Outcome__c is null Then 'Approved'
when STATUS_REASON_CODE in('PA Appeal Denied', 'PA Denied') and Outcome__c is null Then 'Denied'
when Outcome__c='PA Pending' then 'PA Required'
When Outcome__c='PA Appeal Pending' then 'PA Appeal Required'
when STATUS_REASON_CODE in ('PA Appeal Approved', 'PA Approved') and Outcome__c is null Then 'Approved'
when STATUS_REASON_CODE in('PA Appeal Denied', 'PA Denied') and Outcome__c is null Then 'Denied'
else Outcome__c end
我完全看不到任何问题。在我看来,这是嵌套的if-else语句。您可以使用以下指南实现自己-
IIF ( IN(STATUS_REASON_CODE,'BI Complete' , 'BI Updated', 'BI Complete' ) AND and Outcome__c is null and BI_Outcome__c is null, 'PA Required',
IIF (STATUS_REASON_CODE in ( 'BI Complete' , 'BI Updated', 'BI Complete') and Outcome__c is null ,
IIF(BI_Outcome__c = 'PA Appeal Pending', 'PA Appeal Required',
IIF(BI_Outcome__c = 'PA Pending','PA Required',BI_Outcome__c)...
当然这还没有完成,您需要完成它。这看起来很复杂,但并非不可能。