Hi,
The dashboard table panels contain 4 columns (Host,user,A,B). how to query it to do percentage of the values and if the below criteria are met and change the panel values with orange and red color if percentages are met by user and host.
if A > 80% of B, then color code A to Orange; if A > 90% of B, then color code to Red.
Regards,
Satheesh
Hi @Satheesh_red,
It's possible to define a colour range only for the values of one celle or column, in other words, if B chan have a value different than 100, you should add a new column calculating A/B and use colour range on this column.
Ciao.
Giuseppe
Hi @Satheesh_red,
you have to:
Ciao.
Giuseppe
thanks for the reply @gcusello
Unfortunately, when I click on edit the dashboard, I don't see the option called color and ranges, this seems odd, but I'm not sure.
First, I have to make them % criterion and then moving on to color changing modes dependent on thresholds reached.
Regards,
Satheesh
Hi @Satheesh_red,
let me summarize:
is it correct?
Ciao.
Giuseppe
Hi @Satheesh_red,
you're clicking on the wrong button, click on the pen in the column header, not the one on the top roght of the panel.
Ciao.
Giuseppe
thanks @gcusello got it now, But i need to do the below check before i changed the values to color, any query reference. please help.
if A > 80% of B, then color code A to Orange; if A > 90% of B, then color code to Red.
Hi @Satheesh_red,
considering that the B values are always 100, you could set the following ranges:
this is the code:
<format type="color" field="Accessi">
<colorPalette type="list">[#118832,#CBA700,#D41F1F]</colorPalette>
<scale type="threshold">80,90</scale>
</format>
Ciao.
Giuseppe
Hi @gcusello
In my situation, B values are not 100; but, for clarity, I mentioned that values are 100.
So, basically, I'm going to compute the average and define the color ranges.
Please let me know if there is any way we can set it by query itself along with colors.
Regards,
Satheesh
Hi @Satheesh_red,
It's possible to define a colour range only for the values of one celle or column, in other words, if B chan have a value different than 100, you should add a new column calculating A/B and use colour range on this column.
Ciao.
Giuseppe