<?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: Highlight maximum value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541378#M37097</link>
    <description>&lt;P&gt;You can convert the fields to multivalue fields with additional values for the cells you want highlighted, then using CSS hide the extra values.&lt;/P&gt;&lt;P&gt;This is probably easier to add to the original query rather than trying to construct one from the table as shown. By this I mean, the table looks like it might have come from a time-based, so you would add an indicator to the entry that has the highest value in each time period, before charting.&lt;/P&gt;&lt;P&gt;If you would like to share the query/dashboard, you currently have, it would be easier than trying to explain in abstract terms, or you could look at a previous answer to a similar question for some ideas&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Color-a-row-based-on-a-column-value/m-p/539156#M36874" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Color-a-row-based-on-a-column-value/m-p/539156#M36874&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 16:41:00 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-02-25T16:41:00Z</dc:date>
    <item>
      <title>Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541375#M37096</link>
      <description>&lt;P&gt;Hello together,&lt;/P&gt;&lt;P&gt;i had the following example table:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="20%"&gt;Time&lt;/TD&gt;&lt;TD width="20%"&gt;Host1&lt;/TD&gt;&lt;TD width="20%"&gt;Host2&lt;/TD&gt;&lt;TD width="20%"&gt;HostN&lt;/TD&gt;&lt;TD width="20%"&gt;Total&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;00:00&lt;/TD&gt;&lt;TD width="20%"&gt;4&lt;/TD&gt;&lt;TD width="20%"&gt;8&lt;/TD&gt;&lt;TD width="20%"&gt;0&lt;/TD&gt;&lt;TD width="20%"&gt;12&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;01:00&lt;/TD&gt;&lt;TD width="20%"&gt;4&lt;/TD&gt;&lt;TD width="20%"&gt;7&lt;/TD&gt;&lt;TD width="20%"&gt;0&lt;/TD&gt;&lt;TD width="20%"&gt;11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="20%"&gt;02:00&lt;/TD&gt;&lt;TD width="20%"&gt;9&lt;/TD&gt;&lt;TD width="20%"&gt;5&lt;/TD&gt;&lt;TD width="20%"&gt;0&lt;/TD&gt;&lt;TD width="20%"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I search a simple solution to highlight only the highest value in a row, except the column Total (and time).&lt;BR /&gt;So in my exmple highlight for row 00:00 the 8, 01:00 the 7, 02:00 the 9.&lt;/P&gt;&lt;P&gt;I probed with different table format options but the most are for columns and failed also with expressions.&lt;/P&gt;&lt;P&gt;Is there any way to accomplish this with splunk v7.3.3 and hopefully without javascript?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541375#M37096</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2021-02-25T16:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541378#M37097</link>
      <description>&lt;P&gt;You can convert the fields to multivalue fields with additional values for the cells you want highlighted, then using CSS hide the extra values.&lt;/P&gt;&lt;P&gt;This is probably easier to add to the original query rather than trying to construct one from the table as shown. By this I mean, the table looks like it might have come from a time-based, so you would add an indicator to the entry that has the highest value in each time period, before charting.&lt;/P&gt;&lt;P&gt;If you would like to share the query/dashboard, you currently have, it would be easier than trying to explain in abstract terms, or you could look at a previous answer to a similar question for some ideas&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Color-a-row-based-on-a-column-value/m-p/539156#M36874" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/Color-a-row-based-on-a-column-value/m-p/539156#M36874&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 16:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541378#M37097</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T16:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541385#M37099</link>
      <description>&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard theme="light"&amp;gt;
  &amp;lt;label&amp;gt;RAS Connections&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;RAS Connections&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
                    &amp;lt;query&amp;gt;| tstats max(cust.Number_of_VPN_Peers) as Number_of_VPN_Peers
FROM datamodel=data_cust 
WHERE (nodename=cust host="*vpn*") 
BY _time, host span=1h
| timechart dedup_splitvals=t limit=101 useother=t max(Number_of_VPN_Peers) span=1h by host 
| addtotals label="All" 
| rename _time AS "Datum (JJJJ-MM-TT)" 
| convert timeformat="%Y-%m-%d %H:%M" ctime("Datum (JJJJ-MM-TT)")&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-1d@d&amp;lt;/earliest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sure, thats my test dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think i understand the way you provide me, when you can share a example on this one it would be perfect.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 17:08:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541385#M37099</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2021-02-25T17:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541404#M37102</link>
      <description>&lt;P&gt;OK this turned out to be a little more complex than I thought. Part of the reason for this is that chart is adding other column and addtotals is adding another column. Try changing the query to this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats max(cust.Number_of_VPN_Peers) as Number_of_VPN_Peers
FROM datamodel=data_cust 
WHERE (nodename=cust host="*vpn*") 
BY _time, host span=1h
| timechart dedup_splitvals=t limit=101 useother=t otherstr="zzzyyy" max(Number_of_VPN_Peers) as count span=1h by host 
| addtotals 
| rename Total as zzzzzz
| untable _time host count
| eventstats max(eval(if(host!="zzzyyy" and host!="zzzzzz",count,null))) as max by _time
| eval newcount=if(host!="zzzzzz" AND host!="zzzyyy" AND count=max, mvappend(count,"RED"),count)
| xyseries grouped=t _time host newcount
| transpose 0 header_field=host
| eval column=if(column="zzzyyy","OTHER",if(column="zzzzzz","All",column))
| transpose 0 header_field=column
| fields - column 
| rename _time AS "Datum (JJJJ-MM-TT)" 
| convert timeformat="%Y-%m-%d %H:%M" ctime("Datum (JJJJ-MM-TT)")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add a hidden panel with some CSS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;title&amp;gt;Only SimpleXML no JS required&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #tableHighlightHighest table tbody td div.multivalue-subcell[data-mv-index="1"]{
            display: none;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give your table a matching id&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;table id="tableHighlightHighest"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Add some formatting&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        &amp;lt;format type="color"&amp;gt;
          &amp;lt;colorPalette type="expression"&amp;gt;case (match(value,"RED"), "#ff0000",true(),"#ffffff")&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 19:21:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541404#M37102</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T19:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541420#M37108</link>
      <description>&lt;P&gt;Ok, i understand, currently i do not see through the query, but i probed it and it work to 75% &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; So at first BIG thank you!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13080iF8EBB8E0384BB4B6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The only problem is, that the table id is not working and so the css not hide the multi value field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Changed your code a little bit (changed the Table ID name and added also Important):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;title&amp;gt;Only SimpleXML no JS required&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          #tableID1 table tbody td div.multivalue-subcell[data-mv-index="1"]{
            display: none !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt; 
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;And used also the table id in the simplexml:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;      &amp;lt;table id="tableID1"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the following screenshot you see at first, the id is not used in the table and that the css is so not working &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/13081i9118422A0B19D1A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Probed also the following combination in the hidden style panel (and more :D), but no reaction in the table.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;div.multivalue-subcell[data-mv-index]{
            display: none !important;
          }
.results-table td.numeric .multivalue-subcell{
            display: none !important;
          }&lt;/LI-CODE&gt;&lt;P&gt;Didnt understand why this not work, any idea?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541420#M37108</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2021-02-25T20:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541423#M37109</link>
      <description>&lt;P&gt;Try using the id from the div which holds the table (perhaps your version of splunk generates different html)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel depends="$stayhidden$"&amp;gt;
      &amp;lt;title&amp;gt;Only SimpleXML no JS required&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;style&amp;gt;
          div[id="tableID1"] table tbody td div.multivalue-subcell[data-mv-index="1"]{
            display: none !important;
          }
        &amp;lt;/style&amp;gt;
      &amp;lt;/html&amp;gt; 
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:57:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541423#M37109</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-02-25T20:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Highlight maximum value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541426#M37110</link>
      <description>&lt;P&gt;Ok, didnt understand why this is not working with the hidden panel, but probed to add it in the dashboard.css via google chrome in the developer tool file. I didnt added that the form via simple xml and it worked! &lt;span class="lia-unicode-emoji" title=":face_with_open_mouth:"&gt;😮&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So i moved that part static to the file dashboard.css from the app and also your first solution worked without problems.&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI: Both variations for the css worked in the css file&lt;/P&gt;&lt;P&gt;Thank you, for your help! Awesome &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So for all guys on 7.3.3 probe to add the css style in a extra file and define in the simplexml this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;dashboard theme="light" stylesheet="dashboard.css"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;When you didnt want to reload the hole server execute:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://&amp;lt;servername&amp;gt;/de-DE/_bump&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And then it work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 21:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Highlight-maximum-value/m-p/541426#M37110</guid>
      <dc:creator>ronpestler1</dc:creator>
      <dc:date>2021-02-25T21:53:37Z</dc:date>
    </item>
  </channel>
</rss>

