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: 
timsaddler
Creator III
Creator III

Trouble with If Statement

Hi

I'm trying to combine an If Statement with variables i have created . It doesn't work - wonderd if i am attempting the impossible.

 

 

if ([UkDivisionCat19] = 'ACE'
,


(
$(=vCostpertonne)

 

/

$(=vAvgeTravelMiles)

)

Any suggestions appreciated - thanks

2 Replies
SunilChauhan
Champion II
Champion II

use this

if ([UkDivisionCat19] = 'ACE'
,


(
vCostpertonne

/

vAvgeTravelMiles

)

Sunil Chauhan
bgerchikov
Partner - Creator III
Partner - Creator III

Remove "=" sign

if ([UkDivisionCat19] = 'ACE'
,

 
(
$(vCostpertonne)

 

/

$(vAvgeTravelMiles)

)