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

Current Selection

Hi

I have a file with a dimension = Year & some others dimensions like month

I want to build a line chart with a comparaison for each month

- my current Year Selection vs Previous Year selection.

How can I assign expression with these 2 values.

Thanks for your help.

Jean-Jacques

1 Solution

Accepted Solutions
Not applicable
Author

Jean-Jacques,

Try this solution. You select the current year and you will see that year and the prior year(s) by month. I have created two prior periods but you could have one or many.

Hope this helps.

Greg

View solution in original post

4 Replies
johnw
Champion III
Champion III

Attached is one approach.

Not applicable
Author

Jean-Jacques,

Try this solution. You select the current year and you will see that year and the prior year(s) by month. I have created two prior periods but you could have one or many.

Hope this helps.

Greg

Not applicable
Author

Thanks Greg, It's exactly what I want. I'm sure now the set analysis is the best approach.

Jean-Jacques

Not applicable
Author

Congratulations Greg, I was searching this great solution. I made a small change for get the date of system and not need select the dimension. For example...

=sum({$< year ={$(=Only(Year(Now()))-1)}>} amount)

Robson Henrique