Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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