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 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