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: 
theboss-123
Creator II
Creator II

Display Image Condition

Hello ,

 

I have Some Images Rating Stars and table of value,

i need to set a condition to display Image by condition

 

from example for [Field]>=1 and  [Field]<10 display Image 1

and  [Field]>=11 and  [Field]<20display Image 2 and so on

how can i put that in layout condition thanks in advancy.

1 Solution

Accepted Solutions
theboss-123
Creator II
Creator II
Author

Hi the problem solved ,

View solution in original post

7 Replies
QFabian
MVP
MVP

Hi @theboss-123 , if you want to use images, this can be an example :

QFabian_0-1611160868615.png

Expression : ='C:\Users\fquez\Documents\comm\' & F2 & '_stars.png', so i have 5 images, and according to the value, is going to show the stars, the expression have to be as image representation.

 

But you can do it with a linear gauge expression representation in a straight table too :

 

QFabian_1-1611160997908.png

 

Please check the Qvw to  see if it works for you

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
theboss-123
Creator II
Creator II
Author

hi Qfabian,

me im looking for expression condition to display image between two value my approach is correct just i need how to write condition between two value 

theboss-123_0-1611161277729.png

 

QFabian
MVP
MVP

In that case, something like this? :

if(F2 < 3, 'C:\Users\fquez\Documents\comm\1_stars.png',
'C:\Users\fquez\Documents\comm\5_stars.png')

QFabian_0-1611161600645.png

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
theboss-123
Creator II
Creator II
Author

Thanks for you availibilty but if(F2 < 3, 'C:\Users\fquez\Documents\comm\1_stars.png',
'C:\Users\fquez\Documents\comm\5_stars.png')

i have 5 images however ur condition apply just to two images.

theboss-123
Creator II
Creator II
Author

I Tried your condition but unfortanutally it doesn't work,

theboss-123
Creator II
Creator II
Author

this condition is ok but that cannot affect the displaying of images.any suggestion ?

 


=if(QTY_0<=10,'C:\Users\secre\Desktop\TMP\Stars\1star.png',If(QTY_0<=20,'C:\Users\secre\Desktop\TMP\Stars\2star.png','C:\Users\secre\Desktop\TMP\Stars\5star.png'))

theboss-123
Creator II
Creator II
Author

Hi the problem solved ,