Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Subtotal - IF Function - SUM - AR Aging

Hi I have problem on expression syntax. New on using QBAR-QlikView.

if((Age >= 0) and (Age<= 30),OpenBalance*1,0)

Capture-AR-No Sum.PNGCan somebody help me with the code expression.

I think I miss SUM but i dont know the code.

Thanks in advance

20 Replies
Anonymous
Not applicable
Author

Hi Sire Mangal,

Result is "0"

Capture-8.PNG

Capture-7.PNG

Anil_Babu_Samineni

Can you post the application?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Hi Anil,

I am using QBAR

Quickbooks Advanced Reporting

The function is Qlik-View.

Capture-Advanced.PNG

Anil_Babu_Samineni

Even though, You are building thru Qlikview only, Right? So then please create sample qvw and share with us that may useful to you

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Kushal_Chawda

what is expression for age and openbalance?

mangalsk
Creator III
Creator III

Dear ,

Both of following expression working for me please check also make one setting in Presentation tab -->uncheck Suppress Zero-Values. If it doesn't work plz send dummy data.

sum(aggr(sum({<age={">=0<=30"}>}OpenBalance)*1+

sum({<age-={">=0<=30"}>}OpenBalance)*0,[CustomerName],age))

OR

sum(aggr(if(age>=0 and age<=30 ,sum(OpenBalance)*1,sum(OpenBalance)*0),[CustomerName],age))

Anonymous
Not applicable
Author

Hi Mangal Here is the file

Dropbox - AR Aging Detail - V300.zip

Thank you

Anonymous
Not applicable
Author

Hi Anil,

Here is the file report.

Dropbox - AR Aging Detail - V300.zip

Thanks.

mangalsk
Creator III
Creator III

have you tried setting it should work.

Provide attach file sample data

Anonymous
Not applicable
Author

My problem is Im not getting sum.

this formula works but no sum.

if((Age >= 0) and (Age <= 30),OpenBalance*1,0)

if((Age >= 31) and (Age <= 60),OpenBalance*1,0)

if((Age >= 61) and (Age <= 90),OpenBalance*1,0)

if((Age >= 121),OpenBalance*1,0)

I name columns / expression as

Age:

_ReportFilterAsOfDate - Date

OpenBalance:

sum(If (Transactions.Pending = 0 or IsNull(Transactions.Pending),

if ((Match ([Transactions.Txn Type], 'Receive Payment', 'Credit Memo', 'CreditCardCredit') or (Match ([Transactions.Txn Type], 'Journal') and Match([Transactions.Debit Or Credit], 'Credit'))), -[Transactions.Balance Remaining], [Transactions.Balance Remaining])))

Capture2233.PNG