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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Max date in dimension in a piro table


hallo everybody,

I need your help for a set dimension in a dimension. I need the last date for a special criteria as dimension.

I use the max function but this doesnot work.

Can anybody help me.

One sample for my formula:

if(INVT_TRANS_DETAIL.TRAN_CODE='SPRECEIVE', max(INVT_TRANS_DETAIL.TRAN_DATE))

Thanks and greetings Sven

Labels (1)
4 Replies
Nicole-Smith
MVP
MVP

if(INVT_TRANS_DETAIL.TRAN_CODE='SPRECEIVE' and INVT_TRANS_DETAIL.TRAN_DATE=$(=max(INVT_TRANS_DETAIL.TRAN_DATE)), INVT_TRANS_DETAIL.TRAN_DATE)

tresB
Champion III
Champion III

May be like:

Aggr(if(INVT_TRANS_DETAIL.TRAN_CODE='SPRECEIVE', max(INVT_TRANS_DETAIL.TRAN_DATE)) , INVT_TRANS_DETAIL.TRAN_CODE)


Or,


Aggr (Max({<NVT_TRANS_DETAIL.TRAN_CODE={'SPRECEIVE'}>}INVT_TRANS_DETAIL.TRAN_DATE),INVT_TRANS_DETAIL.TRAN_CODE)


Note: Aggr() might not be required if you want the result in a text box

Not applicable
Author

thanks for your answer, but this formula does not work for my pirotable

Nicole-Smith
MVP
MVP

Can you post an example .qvw?  It's almost impossible to help without one.