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: 
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 (3)
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)