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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Current date button

Hello All,

i have a set of sales data, from the year 2000 to current date. I would like to have a butto/shortcut which by default displays the current year sales.

Regards.

3 Replies
Anonymous
Not applicable
Author

Try this

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

sunny_talwar

I think you missed the dollar sign

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

santiago_respane
Specialist
Specialist

You can achieve that by:

  • adding a button
  • add a trigger that selects the desired value in the desired field
  • your expressions can be like:
    • for max year (may or may not current year)
      • =MAX(YEAR)
    • for current year (may or may not have values to display)
      • =YEAR(TODAY(1))

Please let me know if this helps.

Kind regards,