<?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: Color a cell based on the increment rate from the previous value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601744#M49420</link>
    <description>&lt;P&gt;Perfect! it worked,&lt;/P&gt;&lt;P&gt;One more thing, how do I remove the color name from the final output?&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jun 2022 14:32:46 GMT</pubDate>
    <dc:creator>yifatcy</dc:creator>
    <dc:date>2022-06-14T14:32:46Z</dc:date>
    <item>
      <title>How to Color a cell based on the increment rate from the previous value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601725#M49413</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Say I have the following table:&lt;/P&gt;
&lt;TABLE width="547px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="53.484375px" height="69px"&gt;Name&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;&amp;nbsp;2022-06-07 10:01:14&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;2022-06-07 22:01:13&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;2022-06-08 10:01:11&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;2022-06-08 22:01:25&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;2022-06-09 10:01:22&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;2022-06-09 22:00:59&lt;/TD&gt;
&lt;TD width="74.8125px" height="69px"&gt;2022-06-10 10:01:28&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="53.484375px" height="62px"&gt;a&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;301&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;300&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;302&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;303&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;301&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;400&lt;/TD&gt;
&lt;TD width="74.8125px" height="62px"&gt;412&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;b&lt;/TD&gt;
&lt;TD&gt;200&lt;/TD&gt;
&lt;TD&gt;220&lt;/TD&gt;
&lt;TD&gt;235&lt;/TD&gt;
&lt;TD&gt;238&lt;/TD&gt;
&lt;TD&gt;208&lt;/TD&gt;
&lt;TD&gt;300&lt;/TD&gt;
&lt;TD&gt;302&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Can I color a cell based on the increment rate from the previous value? for instance- if the value increased by 10%, it will be yellow, 20% would be Orange and so on.&amp;nbsp;&lt;BR /&gt;I'm looking for a solution based on simple xml where no additional files are needed.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601725#M49413</guid>
      <dc:creator>yifatcy</dc:creator>
      <dc:date>2022-06-14T17:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Color a cell based on the increment rate from the previous value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601737#M49418</link>
      <description>&lt;P&gt;You can try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| foreach *-*
    [| eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(isnull(_previous),'&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',mvappend('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',if(tonumber(mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',0))/tonumber(_previous)&amp;lt;1.1,"GREEN",if(tonumber(mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',0))/tonumber(_previous)&amp;lt;1.2,"YELLOW",if(tonumber(mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',0))/tonumber(_previous)&amp;lt;1.3,"ORANGE","RED")))))
    | eval _previous=mvindex('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;',0)]&lt;/LI-CODE&gt;&lt;P&gt;and then follow the recommendations in other solutions such as this&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-update-table-cell-color-as-per-the-another-field/m-p/599965#M49240" target="_self"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-to-update-table-cell-color-as-per-the-another-field/m-p/599965#M49240&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 13:16:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601737#M49418</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-14T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Color a cell based on the increment rate from the previous value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601744#M49420</link>
      <description>&lt;P&gt;Perfect! it worked,&lt;/P&gt;&lt;P&gt;One more thing, how do I remove the color name from the final output?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 14:32:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601744#M49420</guid>
      <dc:creator>yifatcy</dc:creator>
      <dc:date>2022-06-14T14:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Color a cell based on the increment rate from the previous value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601753#M49421</link>
      <description>&lt;P&gt;That's part of the solution - you have some embedded CSS (no additional files), which set the display type to none for the second (index 1) multi-part cell.&lt;/P&gt;&lt;P&gt;Possibly clearer to see here&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-change-table-cell-background-color-depends-on-search/m-p/571767/highlight/true#M199243" target="_self"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-change-table-cell-background-color-depends-on-search/m-p/571767/highlight/true#M199243&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:33:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601753#M49421</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-06-14T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Color a cell based on the increment rate from the previous value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601754#M49422</link>
      <description>&lt;P&gt;Great!, had a syntax problem but now worked. Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 15:42:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-Color-a-cell-based-on-the-increment-rate-from-the/m-p/601754#M49422</guid>
      <dc:creator>yifatcy</dc:creator>
      <dc:date>2022-06-14T15:42:08Z</dc:date>
    </item>
  </channel>
</rss>

