Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Maxyear sales amount using variable in set anaysis

Hi

I have a scenario

I want to show max year and month sales

created a varable vmaxyear for max year and month

please provide the set analysis ex[ression for do this

Thanks

Thiru

5 Replies
sunny_talwar

May be this:

Sum({<Year = {$(=Max(Year))}>}Sales)

or this:

Sum({<Date = {"$(='>=' & Date(MonthStart(Max(Date)), 'DateFieldFormatHere') & '<=' & Date(MonthEnd(Max(Date)), 'DateFieldFormatHere'))"}, Year, Month, MonthYear>}Sales)

Anonymous
Not applicable
Author

Sum({<Year = {'$(=vmaxyear)'}>}Sales)

Not applicable
Author

Thanks

It's working

Anonymous
Not applicable
Author

Hi.. Please mark the answer as correct or Helpful so that other members in the community could benefit and the status will change to answered...

Thanks

Not applicable
Author

HI



Sum({<Year = {'$(=vmaxyear)'}>}Sales)


It;s the answer it's working


Thiru