I am having trouble running this query and it is not clear to me why it won't run. So What I am trying to do is 1. Check if [_DATA].[Claim_Status] is null or not 2. if it is null, check indemnity_paid if it's > 0 and if it is, output "SETTLED". 3. If indemnity_paid is not > 0 , then it would check resolution date and if resolution date is greater than 1/1/1920, it will output "DISMISSED" and if the resolution date is not greater than 1/1/1920 or it is null , it should output "PENDING". Above was for blank status and I need to make changes for non-blank cells too. 1. Check if it is non-blank-cell that has either "CLOSED" or "CLOSED*". if the claim_status is either of those, it will check indemnity paid and if there is greater than 0 indemnity paid, it should output "SETTLED" and if it is not >0, it should output "DISMISSED". Can anyone leave comments regarding the code below? Thanks in advance!
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">Claim_Status: iif([_DATA].[Claim_Status] IS NULL,iif([_DATA].
[Indemnity_Paid]>0,"SETTLED",iif([_DATA].
[Resolution_Date]>#1/1/1920#,"DISMISSED","PENDING"),iif([_DATA].[Claim_Status]
IN ("CLOSED","CLOSED*","ADDMOREHERE"),iif([_DATA].
[Indemnity_Paid]>0,"SETTLED","DISMISSED"),[Status].[Claim_Status]))))</code>
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">Claim_Status: iif([_DATA].[Claim_Status] IS NULL,iif([_DATA].
[Indemnity_Paid]>0,"SETTLED",iif([_DATA].
[Resolution_Date]>#1/1/1920#,"DISMISSED","PENDING"),iif([_DATA].[Claim_Status]
IN ("CLOSED","CLOSED*","ADDMOREHERE"),iif([_DATA].
[Indemnity_Paid]>0,"SETTLED","DISMISSED"),[Status].[Claim_Status]))))</code>