Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to set the expression to get correct values


Hi,

I have to use below expression to get MAX(TransDate) in straight table

Max({<TransTypeDomain={"Receipt"},Transtype={"DD","SO"},AccountTypeID={"19865"}>}TransDate)

when ActualAccountID=AccountID

Could anyone help me how to change the above expression to get correct values. Here ActualAccountID is column in Table1 and AccountID is column in Table2.

Please help me.

Thanks.

11 Replies
salto
Specialist II
Specialist II

Hello,

The syntax is correct - How are Table1 and Table2 linked? Could you Join them?

Not applicable
Author

Yes there is a join between Table1 and Table2. when I am using the abiove expression I am getting incorrect Values.

Please help me how to set this.

Not applicable
Author

Amelia,

I would add in the set Analysis the boolean expression. To do that:

AnotherFieldOfTable1 = {"=(ActualAccountID=AccountID)"}

Fabrice

Not applicable
Author

Thanks and can you explain how to use this as I couldn't able to get what AnotherFieldOFTable1?

jagan
Luminary Alumni
Luminary Alumni

Hi,

Try like this

=Max({<TransTypeDomain={"Receipt"},Transtype={"DD","SO"},AccountTypeID={"19865"}, ActualAccountID = {"=(ActualAccountID=AccountID)"}>}TransDate)

Regards,

Jagan.

Not applicable
Author

Thanks and I used the same still it is showing incorrect dates. Please help how to sort this completely.

Not applicable
Author

I think you have several fields in the Table1 where ActualAccountID is.

in fact, when you have a boolean expression in the set analysis, I stated that you cannot use it a second time. Therefore you have to write

A ={"=(B=C)"}


Fabrice

Not applicable
Author

Thanks and what it means exactly

Not applicable
Author

Do not understand ....

it means that you add in the set analysis one more clause : where the field B= the field C

it was not a point of your request ?

Fabrice