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: 
Anonymous
Not applicable

Comparison field

Hi,

I have a chart. I have 2 fields: Campaign and date. (filters)

I want to select from variable Campaign (for example Campaign A) and from comparison variable Campaign (for example Campaign D)  and compare them.

How can I set up independent variables Campaign?

or help with your idea.

Please find attached file.

Thanks,

1 Solution

Accepted Solutions
MarcoWedel

Hi Vladimir,

maybe alternate states could be a solution for you:

at first generate an alternate state like this:

QlikCommunity_Thread_119141_Pic1.JPG.jpg

use this state in your comparison campaign selection chart:

QlikCommunity_Thread_119141_Pic3.JPG.jpg

add the alternate state to your chart's set expressions:

QlikCommunity_Thread_119141_Pic2.JPG.jpg

the result should look like this:

QlikCommunity_Thread_119141_Pic4.JPG.jpg

maybe you also have to adjust your set exprsssions in order to let the selections in other fields also apply to your comparison expressions.

see help:

Example:

sum({[Group 1]<Region = $::Region>} Sales)

This syntax uses the selections in the Region field from the default state and modifies the state ‘Group 1’ with them. The effect is to keep the Region field "synchronized" between the default state and ‘Group 1’ for this expression.

hope this helps

regards

Marco

View solution in original post

3 Replies
MarcoWedel

Hi Vladimir,

maybe alternate states could be a solution for you:

at first generate an alternate state like this:

QlikCommunity_Thread_119141_Pic1.JPG.jpg

use this state in your comparison campaign selection chart:

QlikCommunity_Thread_119141_Pic3.JPG.jpg

add the alternate state to your chart's set expressions:

QlikCommunity_Thread_119141_Pic2.JPG.jpg

the result should look like this:

QlikCommunity_Thread_119141_Pic4.JPG.jpg

maybe you also have to adjust your set exprsssions in order to let the selections in other fields also apply to your comparison expressions.

see help:

Example:

sum({[Group 1]<Region = $::Region>} Sales)

This syntax uses the selections in the Region field from the default state and modifies the state ‘Group 1’ with them. The effect is to keep the Region field "synchronized" between the default state and ‘Group 1’ for this expression.

hope this helps

regards

Marco

Anonymous
Not applicable
Author

It looks like I need it.

But I do something wrong.

Could you please send me your example.

Thanks,

Anonymous
Not applicable
Author

I think I solve an issue.

But I use my expression. I don't know how to use your expression.

I have selection by Campaign and/or date.

I'd like to fix my expression. Because when I select from Comparison period, my Campaign period disappears.

I need to re-select date from Campaign period again.