Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

If Statement

Hi I pretty much new to Qlikview and I am trying to do an If Stetement in a Definition. I am currently trying

=if([Next Period]='Green','qmem://<bundled>/BuiltIn/led_g.png',

         if([Next Period] = 'Red','qmem://<bundled>/BuiltIn/led_r.png',

             'qmem://<bundled>/BuiltIn/led.png'))

But getting nothing can any one show me where I have gone wrong

The only data in the table at the minute is Green or Red

Distressed SQL Developer

1 Solution

Accepted Solutions
ashfaq_haseeb
Champion III
Champion III

Hi,

Nothing wrong,look at the attachment.

Look at the attached image for setting.

Regards

ASHFAQ

View solution in original post

11 Replies
Not applicable
Author

Hi,

Could you join your application?

Not applicable
Author

Not following ??

sasikanth
Master
Master


HI

where your are using this one

ashfaq_haseeb
Champion III
Champion III

Hi,

Nothing wrong,look at the attachment.

Look at the attached image for setting.

Regards

ASHFAQ

rsdhavle
Creator II
Creator II

Please elaborate what are you trying exactly. You want to show some green or red arrow images as an indicator?

If yes where are you writing this expression?

rsdhavle
Creator II
Creator II

Might be in representation of an expression you have not selected Image or something like that as expression looks fine

Not applicable
Author

I am writing the expression in the definition section of the expressions in a pivot table chart.

sasikanth
Master
Master

then try to post your QVW, nothing wrong in that Exp

Try to post sample file

Not applicable
Author

Problem I have I am working on a personal version of Qlikview at the minute. The report can't go live until I have this sorted. I am going to look to see if I can do something with the data as I feel this is where the error lies. Thanks for the help and confirmation my code writing is correct.