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 find max Trans ID.

Hi All.

i need to find Max Trans ID of a customer at Max date for this i  did group customer ID and Max Trans date.i got it but how to get Max Trans ID of a customer.


Thanks

1 Solution

Accepted Solutions
sunny_talwar

Like this?

Customer:

LOAD [Customer ID],

    [Tran Date],

    [Trans ID]

FROM

[Book1.xlsx]

(ooxml, embedded labels, table is Sheet1);

Customer_G:

LOAD [Customer ID],

  Max(Date([Tran Date])) as Max_Trans_Date,

  MaxString([Trans ID]) as Max_Trans_ID

Resident Customer

Group By [Customer ID], [Tran Date];

View solution in original post

4 Replies
Not applicable
Author

use in you dimension customer and on expression use max(tran date).

Not applicable
Author

Thank Sliva,

I need Max(Trans ID)  and Max(Trans Date) of that customer

sunny_talwar

Like this?

Customer:

LOAD [Customer ID],

    [Tran Date],

    [Trans ID]

FROM

[Book1.xlsx]

(ooxml, embedded labels, table is Sheet1);

Customer_G:

LOAD [Customer ID],

  Max(Date([Tran Date])) as Max_Trans_Date,

  MaxString([Trans ID]) as Max_Trans_ID

Resident Customer

Group By [Customer ID], [Tran Date];

Not applicable
Author

use maxstring(Trans ID)