Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Look up maximum date

I have a transaction table where each transaction has a date: TRAN_DATE

This table is linked to a date look up table which gives me our company time period that a date belongs to; this table has fields TRAN_DATE and TIME_PERIOD

The lookup table includes dates into the future so when I use the expression max(TRAN_DATE) I get the latest date in the look up table. I really want the maximum date in the transaction table.

Any pointers?

1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

try

Max({<TRANSACTION_ID ={"=len(TRANSACTION_ID )>0"}>}TOTAL TRAN_DATE)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

3 Replies
Not applicable
Author

I really want something like Max(TRAN_DATE where the TRANSACTION_ID is NOT NULL)!!

vinieme12
Champion III
Champion III

try

Max({<TRANSACTION_ID ={"=len(TRANSACTION_ID )>0"}>}TOTAL TRAN_DATE)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
jonathandienst
Partner - Champion III
Partner - Champion III

With If statement:

=Max(If(Len(TRANSACTION_ID) > 0, TRAN_DATE ))


Set expresssion:

=Max({<TRANSACTION_ID = {'*'}>} TRAN_DATE)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein