Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

What does the "::" function do in this expression?

Hi all,

I have an expression that is like below:

sum({State1<Year=$::Year>}LineSalesAmount)

What does the "::" part in the expression do?

6 Replies
petter
Partner - Champion III
Partner - Champion III

Hi Michael,

Have a look here and you will get an explanation:

     QlikView Syntax (specifically Alternate States):

     http://www.qlikcommunity.com/thread/80385

Anonymous
Not applicable
Author

it means that the selections made to Year from the other states are carried through to this state.

Anonymous
Not applicable
Author

When you work with Comparative Analysis you often create some list boxes to make different selections, but you may want to impact other fields from the data model when selecting some values without having to create additional list boxes for those fields. Some fields you may want to avoid dupplicating are date fields like in your example, and notation for these fields is:

AggregationFunction({[Alternate State] <[Field 1]=$::[Field 1], [Field 2]=$::[Field 2]>} KPI).

Hope this helps you to understand better the function of $::

Regards.

Oscar

Not applicable
Author

Thanks guys, so if I made selections in another sheet or another Year field box in my application - the "::" would carry it through to my expressions where I defined them?

Anonymous
Not applicable
Author

that is correct. this helps when you have "global" filters that need to affect all objects irrespective of states.

Not applicable
Author

Thank you jsaradhi