<?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: How to color fields based field value and Blank value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528730#M35885</link>
    <description>&lt;P&gt;Looks like if you flip the color scheme it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;colorPalette type="expression"&amp;gt;if (isnotnull(value),"#00b33c","#A9A9A9")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 09 Nov 2020 19:56:21 GMT</pubDate>
    <dc:creator>UMDTERPS</dc:creator>
    <dc:date>2020-11-09T19:56:21Z</dc:date>
    <item>
      <title>How to color fields based field value and Blank value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528575#M35881</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;First Question&lt;/STRONG&gt; - I'm having a little trouble with my XML that is trying to color a field based on value and blank value. I have a field called "Status" that has a date in this format "3/24/2020" and if it doesn't have a date, it's blank.&amp;nbsp; If the field has a date the field will be green, if the field is blank it will be colored grey.&lt;/P&gt;&lt;P&gt;My current XML is as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;format type="color" field="Status"&amp;gt;
&amp;lt;colorPalette type="expression"&amp;gt;if (like(value,""),"#00b33c","#A9A9A9")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above XML half works, it colors in the fields with dates Green, but the fields that are blank it leaves white as normal and doesn't give the grey color.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas how to solve this with simple XML?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Second Question&lt;/STRONG&gt; - Is it possible to color a specific cell a color using simple XML?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 18:05:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528575#M35881</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2020-11-09T18:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to color fields based field value and Blank value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528683#M35884</link>
      <description>&lt;P&gt;Are they blank (present with nothing in) or null (not present). Try something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;format type="color" field="Status"&amp;gt;
&amp;lt;colorPalette type="expression"&amp;gt;if (isnotnull(value),"#A9A9A9","#00b33c")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 19:25:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528683#M35884</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-09T19:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to color fields based field value and Blank value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528730#M35885</link>
      <description>&lt;P&gt;Looks like if you flip the color scheme it works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;colorPalette type="expression"&amp;gt;if (isnotnull(value),"#00b33c","#A9A9A9")&amp;lt;/colorPalette&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 09 Nov 2020 19:56:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-color-fields-based-field-value-and-Blank-value/m-p/528730#M35885</guid>
      <dc:creator>UMDTERPS</dc:creator>
      <dc:date>2020-11-09T19:56:21Z</dc:date>
    </item>
  </channel>
</rss>

