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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
kkkumar82
Specialist III
Specialist III

What is the difference between an expression having '= ' and not having '='

Hi all,

can any body explain with an example the difference between sum(Sales) and = sum(Sales) as expressions in charts.

Thanks

Kiran Kumar

11 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Nothing ... there is no difference

rubenmarin

Hi Kiran, so far I know in chart expressions there is no difference. In other objects like text boxes it's a must-do if you want to calculate something. It also can change the behaviour of a variable.

In big terms, when an expression starts with '=' the expression returns the calculated result, when you don't have that preceding '=' it returns the string. As charts expressions is used to calculate the result, there is no difference using the starting '='.

buzzy996
Master II
Master II

nothing much,but his link will helps to understand better,

The Magic of Variables

marcus_sommer

Like always the explanation comes from hic.

The Little Equals Sign

- Marcus

Not applicable

Hi Kiran,

This may help you..

Thanks

Harsha Nandan

kkkumar82
Specialist III
Specialist III
Author

Thanks Harsha , can u  create a sample qvw for this , if possible.

Regards

Kiran Kumar

kkkumar82
Specialist III
Specialist III
Author

Thank you all for ur valuable suggestions.

buzzy996
Master II
Master II

the best example already shared by Marcus Sommer,pls go though tht.

Not applicable

Hi Kiran,

In First Chart: Year as Dimension and Sum(Sales) as Expression

Create a Variable vSales and assign the value as =Sum(Sales) in Variable Overview Window

then Second Chart:Year as Dimension and $(vSales) as Expression