Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Error in expression : ')' expected

Hi does anyone know what I did wrong ?

if($(xxx),'130',

if($(xxx),'140',

if($(xxx),'20',

if($(xxx),'30',

if($(xxx),'0','100')))))

Anthony

17 Replies
oknotsen
Master III
Master III

Could you please show us the content of "xxx" and the code surrounding this piece of code? My guess is the error is caused in any of those two.

May you live in interesting times!
sunny_talwar

What is $(xxx) here? Variable>

sasikanth
Master
Master

Is this your expression ? can you give some more inputs..

Kushal_Chawda

try with single quotes

if('$(xxx)','130',

if('$(xxx)','140',

if('$(xxx)','20',

if('$(xxx)','30',

if('$(xxx)','0','100')))))

Not applicable
Author

if($(TickXOIP),'130',

if($(TickInternational),'140',

if($(fils),'20',

if($(NBDGPM),'30',

if($(ClosStream),'100'))))))

Yes they are variable

Anonymous
Not applicable
Author

Hi Anthony,

If you have any comments, or your expression returns strings or formated dates, QlikView will return errors. We need to see the content of your var.

Regards!

oknotsen
Master III
Master III

Could you should us the content of those variables? My guess is some of them have expressions in them and maybe one of those is missing a bracket.

May you live in interesting times!
migueldelval
Specialist
Specialist

Hi Anthony Pardo,

Your expression it´s ok (you can see it in attach picture). The problem its your expression $(XXX). If it´s a variable, check this document: The Magic of Variables

Regards

Miguel del Valle de Gracia

Not applicable
Author

not working I also tried

if('$(=xxx)','130',

if('$(=xxx)','140',

if('$(=xxx)','20',

if('$(=xxx)','30',

if('$(=xxx)','0','100')))))
and

if($(=xxx),'130',

if($(=xxx),'140',

if($(=xxx),'20',

if($(=xxx),'30',

if($(=xxx),'0','100')))))