Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey Guys Can Some body Let me know the Answer for this Question.
What is the difference between using “=” before a variable and when it is not used?
Thanks In Advance!
Hi,
Giving = in variable will evaluate the expression and stores the result in variable, if we do not give = then the expression is stored as string.
For example:
vSales : =Sum(Sales) - then Total sales is calculated (Assume total sales is 1 Million)
vSalesExpression : Sum(Sales) - this will store Sum(Sales) as string
Now in a chart if you have a dimension Customer and use the above expression
=$(vSales) - for all the customers you will the same sales amount 1 Million, since it is already evaluated.
=$(vSalesExpression ) - will calculate the sales for each customer, $(vSalesExpression ) will simply put Sum(Sales).
Hope this helps you.
Regards,
Jagan.
Hi,
Giving = in variable will evaluate the expression and stores the result in variable, if we do not give = then the expression is stored as string.
For example:
vSales : =Sum(Sales) - then Total sales is calculated (Assume total sales is 1 Million)
vSalesExpression : Sum(Sales) - this will store Sum(Sales) as string
Now in a chart if you have a dimension Customer and use the above expression
=$(vSales) - for all the customers you will the same sales amount 1 Million, since it is already evaluated.
=$(vSalesExpression ) - will calculate the sales for each customer, $(vSalesExpression ) will simply put Sum(Sales).
Hope this helps you.
Regards,
Jagan.
Hi,
check this links, hope it helps you.
http://www.naturalsynergies.com/q-tip-6-those-tricky-sign-expansions/
Regards,
Jagan.
I have gotten the Answer.
Thank you so much for your help.