Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a straight table in qvw like below
Subject | TotalPass | Passed by Stamp | Passed by Average |
---|---|---|---|
Science | 250 | 150 | 100 |
Maths | 345 | 100 | 245 |
English | 500 | 50 | 450 |
Zoology | 200 | 120 | 80 |
Botany | 400 | 20 | 380 |
I would need to show KPIs with colours. I,e I should show Passed by Stamp as Red and Passed by Average as Yellow and TotalPass as Green.
Is it possible to do this?
In above Subject is Dimension and TotalPass, Passed by Stamp , Passed by Average are Expressions.
Thanks in advance.
You may need to set Display Options->Image Formatting to "Keep Aspect" as well. But now I'm just guessing what may be wrong, as I don't have all the details of your situation.
See attachment for a working example.
Good luck,
Peter
In the Expression tree, expand the sub elements by clikcing the plus sign. There is a leaf called Background Color. Select it and enter =green(), =red() or =yellow in the expression field.
Not that these colors may make your numbers unreadable. Use =rgb(R, G, B) to defined lighter colors.
Peter
Yes, Next to each expression click the + sign, and then go to background color. There you can specify a color like red(), yellow(), green(), and if you know the rgb value, rgb(). You can also use expressions here like:
IF([Passed by Stamp] <=50, yellow(), green())
Hope this helps!
See screenshot:
Thanks and if I want to show the images like arrows or Led symbols how can I do this?
Hi Amela,
As you have 3 different expressions in your straight table : Total Pass, Pass by Stamp and Passed by Average.
So go to the expressions click + sign and go to BackGround Colour , then in Definintion field put = (yellow)
then choose ok,
Same do it for other expressions, change colour name and its ok.
Thanks. If I want to show images I just Used below but it is showing error
if([Passed by Stamp] <=50 'qmem://<bundled>/BuiltIn/led_g.png' , 'qmem://<bundled>/BuiltIn/led_g.png')
Put a comma behing the logical expression (after the value 50)
Peter
I tried but same error is showing
Do I need to change any thing else here?Please let me know