Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need check of expression

Hi Community,

I got the following Code:

=SUM({<Companyname = , TransactionDate = {">=(=MIN(TransactionDate)$<"} OpeningBalanceAmount)

Should display the openingsamount of the first TransactionDate

=SUM({<Companyname = , TransactionDate = {">=(=MAX(TransactionDate)$<"} ClosingBalanceAmount)

Should display the closingamount of the lastTransactionDate

What is wrong with the code? It keeps returing empty.

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try these:

SUM({<Companyname= ,TransactionDate={'$(=MIN(TransactionDate))'}>} OpeningBalanceAmount)

SUM({<Companyname= ,TransactionDate={'$(=MAX(TransactionDate))'}>} OpeningBalanceAmount)

And make sure your TransactionDate field contains real dates (i.e. numbers, optionally formatted as dates) and not strings.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

Try these:

SUM({<Companyname= ,TransactionDate={'$(=MIN(TransactionDate))'}>} OpeningBalanceAmount)

SUM({<Companyname= ,TransactionDate={'$(=MAX(TransactionDate))'}>} OpeningBalanceAmount)

And make sure your TransactionDate field contains real dates (i.e. numbers, optionally formatted as dates) and not strings.


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks, the code below did it for me. for the extra information!

=SUM({<Rekeningnummer=, Bedrijfsnaam=, CalendarDate= '$(=Minstring(CalendarDate))'}>}OpeningBalanceAmount*DebitCreditFactor)