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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get amount of max month of max year?

Kinldy correct me

=Sum({<FinYear= {$(=vMaxYear)}>}Amount) its giving max year amount

=Sum({<FinMonth= {$(=vMaxMonth)},FinYear= {$(=vMaxYear)}>}Amount) its not working

Thanxs Regards,

Usman

2 Replies
simondachstr
Specialist III
Specialist III

The error must obviously lie within FinMonth= {$(=vMaxMonth)}.

I suspect one of the following:

1) The month format is different. While FinMonth might expect e.g. 'Dec' vMaxMonth is an integer '12'.

2) There is no data available for maxmonth and maxyear, which of course depends on how you calculate the variables.

Not applicable
Author

Hmm thanxs i got your point now its working.

regards,

Usman