Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
The below expression in chart gives error. The syntax in expression editor does not throw any error.
Can someone suggest what needs to be tweaked in below expression
Expressions when evaluated by parts work fine.
eGoalSalesCY=Sum({< GoalSales_Year = {'$(=Max(GoalSales_Year))'} >} Goals)
eGrowthGoalSales_CYvsPY=(($(eGoalSalesCY) / $(eGoalSalesPY))-1)
eGrowthAvgPremium_CYvsPY=($(eAvgPremiumCY)/$(eAvgPremiumPY)-1)
May be this
Can you rectify the one highlighted in the red.
May be this
Hi Surya,
Try this,
If($(eGrowthAvgPremium_CYvsPY)<1,'qmem://ImageName/RedArrow',if($(eGrowthAvgPremium_CYvsPY)<=$(eGrowthGoalSales_CYvsPY),'qmem://<bundled>/BuiltIn/minus.png',if($(eGrowthAvgPremium_CYvsPY)>$(eGrowthGoalSales_CYvsPY),'qmem://ImageName/GreenArrow')))
Regards,
Pratik
Hi Vishwarath,
I am sorry I am not able to interpret what has to be changed??
As suggested by Sunny in his reply, do like 1 < yourvariablename AND yourvariablename <= variablename.
Hi All I understand <1 condition is causing the error but what is wrong in the syntax. can someone please elaborate?
Not sure but look it once on marked one with blue
If condition in qlik cannot be like this
A < x < B... instead you need like this
A < x and x < B
Thanks Much Sunny