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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
jandro98
Contributor
Contributor

How to set the measures of a graph depending on filters

Hello,

I need to show in a graph the number of Sales of a Year by month.

The problem is that i would like to show the years setted as filter.

 

Here I leave you an example of a hardcoded years.

Screenshot_1.png

 

I would like to show this but with all the years setted in filter

Is that possible?

 

Thank you.

Labels (1)
1 Reply
Vegar
MVP
MVP

Try something like this. The example is assuming you want to calculate sum(Amount).

Sum({<DateField, yearmonth=, Year={">=$(=max(Year)-1)<=$(=max(Year))"}
>}Amount)