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: 
francisvandergr
Partner - Creator II
Partner - Creator II

Set Analyses

I have a formula in a Straight table.

sum({ $ < Year = {$(#=only( Year2 ))}> } Sales)

I wanna compare 2 periods. I have four important fields for it :

Year

Month

Year2

Month2

Formula above works for Year2. When i select year2 in my dashboard, i see all sales of the selected period. Now i wanna extend my formula with month2.

It must be possible to selct more months.

Can someone help me with the formula incl. Month2.

Thnx

Francis

1 Solution

Accepted Solutions
francisvandergr
Partner - Creator II
Partner - Creator II
Author

The easiest way to compare is with bookmarks in this way

View solution in original post

2 Replies
Not applicable

Hi

All you should need to do is add the formula using a comma to seperate it. Therefore it should look something like this

sum({ $ < Year = {$(#=only( Year2 ))}> },{ $ < Month = {$(#=only( Month2 ))}> } Sales)

Regards

francisvandergr
Partner - Creator II
Partner - Creator II
Author

The easiest way to compare is with bookmarks in this way