Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Luminary Alumni
Luminary Alumni

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