Hi everyone,
I am trying to do some calculated expression in my query with multiple combination of (iif,Sum,NZ)
In above code i am trying to subs tract SumOfCurDebit from SumofCurCredit based on iif condition of GroupName till here is ok with above.
What i want is if SumofCurCredit is Null and SumofCurDebit have value then it should show the value of SumofCurDebit only then and vise versa for SumofCurCredit with above code.
I am facing little issues with handling the null or black field value in Expression builder of my query, dont know where exactly i have to add the NZ function to calculate the null field value along with above code.
I am trying to do some calculated expression in my query with multiple combination of (iif,Sum,NZ)
Code:
Balance: Sum(IIf([GroupName]="Asset",[SumOfCurDebit]-[SumOfCurCredit],IIf([GroupName]="Liability",[SumOfCurCredit]-[SumOfCurDebit],IIf([GroupName]="Equity",[SumOfCurCredit]-[SumOfCurDebit],IIf([GroupName]="Income",[SumOfCurCredit]-[SumOfCurDebit],IIf([GroupName]="Expense",[SumOfCurDebit]-[SumOfCurCredit]))))))
In above code i am trying to subs tract SumOfCurDebit from SumofCurCredit based on iif condition of GroupName till here is ok with above.
What i want is if SumofCurCredit is Null and SumofCurDebit have value then it should show the value of SumofCurDebit only then and vise versa for SumofCurCredit with above code.
I am facing little issues with handling the null or black field value in Expression builder of my query, dont know where exactly i have to add the NZ function to calculate the null field value along with above code.