<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Single value color change based on condition? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618569#M50803</link>
    <description>&lt;P&gt;If the value is a string then it cannot be compared to a number.&lt;/P&gt;&lt;P&gt;The fix is to remove the "%" from the value and let the SV visualization add it in for you using the "Number Format" tab in the formatter.&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 12:33:40 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-10-27T12:33:40Z</dc:date>
    <item>
      <title>Single value color change based on condition?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618424#M50790</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;I have the following query for a single value visualisation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| stats count(eval(completedDate &amp;lt; TargetDate)) as completed, count(number) as total
| eval percentage = round((completed/total)*100, 2)." %"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The visualisation is the percentage. I need to change the colors to red and green based on the value of the percentage. This I managed to do. However, I need to change the color of the value to grey if total&amp;lt;5. Is this possible to do, or not?&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:13:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618424#M50790</guid>
      <dc:creator>Nic</dc:creator>
      <dc:date>2022-10-26T15:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: Single value color change based on condition?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618425#M50791</link>
      <description>&lt;P&gt;Yes, you have control over the colors in a SV.&amp;nbsp; Click on the format icon for the visualization then click on the Color tab on the left.&amp;nbsp; Enter the levels for each range and click on the colored box to choose the color for that range.&amp;nbsp; Use the "Add Range" button if you need more ranges.&amp;nbsp; Changes are saved when you close the formatter.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 15:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618425#M50791</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-26T15:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Single value color change based on condition?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618542#M50799</link>
      <description>&lt;P&gt;Hi, Thank you for your quick reply. Unfortunately the output of this single value is not the 'total' value (numeric), but the 'percentage' value (string). I was wondering if I can change the color of the percentage value if the total value is &amp;lt;5.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 07:30:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618542#M50799</guid>
      <dc:creator>Nic</dc:creator>
      <dc:date>2022-10-27T07:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Single value color change based on condition?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618569#M50803</link>
      <description>&lt;P&gt;If the value is a string then it cannot be compared to a number.&lt;/P&gt;&lt;P&gt;The fix is to remove the "%" from the value and let the SV visualization add it in for you using the "Number Format" tab in the formatter.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 12:33:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Single-value-color-change-based-on-condition/m-p/618569#M50803</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-27T12:33:40Z</dc:date>
    </item>
  </channel>
</rss>

