Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Display Max transaction or max tran date in calculated dimension

Hi Guys,

     Assuming i have this table.

    

CCTYPETranNoamountTranDate
K902329AB2100001/02/2010
K902329AB4100002/02/2010
K902329AB7100005/02/2010
K902330AB1100011/02/2010
K902330AB2100012/02/2010
K902330AB5100013/02/2010
K902331AC1100022/02/2010
K902331AC3100023/02/2010
K902331AC4100024/02/2010
K902331AC6100025/02/2010

I'm trying to achieve these result in calculated dimension as per below in pivot table or straight table.

1st desired result

   

CCTYPEMax(tranno)=SUM(Amount)
K902329AB73000
K902330AB53000
K902331AC64000

2nd Desired result

   

CCTYPEdate of Max(tranno)=SUM(Amount)
K902329AB05/02/20103000
K902330AB13/02/20103000
K902331AC25/02/20104000

Any idea how?

11 Replies
Anonymous
Not applicable
Author

Say if the table for the transaction is Many to Many?  the firstsortedvalue cant work?

Later i will try to replicate using a few samples and see if this can be done.

Anonymous
Not applicable
Author

hi, i did load a sample of the data in new to qliksense,

can u access it and see how the firstsortedvalue can work in that many to one or many to many data set???