<?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 How to use token in &amp;lt;scale&amp;gt; tag? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643051#M222747</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dashboard with table and some columns with colorPalette and scale&lt;/P&gt;
&lt;P&gt;I'd like to set dynamically the range of the scale for the colorPalette using a text input&lt;/P&gt;
&lt;P&gt;I did that but not working&lt;/P&gt;
&lt;P&gt;&amp;lt;input type="text" token="myValue" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Value Scale&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;lt;format type="color" field="transaction/arbitrage_v2.0"&amp;gt;&lt;BR /&gt;&amp;lt;colorPalette type="list"&amp;gt;[#FFFFFF,#D41F1F]&amp;lt;/colorPalette&amp;gt;&lt;BR /&gt;&amp;lt;scale type="threshold"&amp;gt;$myValue$&amp;lt;/scale&amp;gt;&lt;BR /&gt;&amp;lt;/format&amp;gt;&lt;/P&gt;
&lt;P&gt;but myValue is not interpreted&lt;/P&gt;
&lt;P&gt;Is it possible to solve ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 13:47:27 GMT</pubDate>
    <dc:creator>mxh7777</dc:creator>
    <dc:date>2023-05-11T13:47:27Z</dc:date>
    <item>
      <title>How to use token in &lt;scale&gt; tag?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643051#M222747</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have a dashboard with table and some columns with colorPalette and scale&lt;/P&gt;
&lt;P&gt;I'd like to set dynamically the range of the scale for the colorPalette using a text input&lt;/P&gt;
&lt;P&gt;I did that but not working&lt;/P&gt;
&lt;P&gt;&amp;lt;input type="text" token="myValue" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Value Scale&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;lt;format type="color" field="transaction/arbitrage_v2.0"&amp;gt;&lt;BR /&gt;&amp;lt;colorPalette type="list"&amp;gt;[#FFFFFF,#D41F1F]&amp;lt;/colorPalette&amp;gt;&lt;BR /&gt;&amp;lt;scale type="threshold"&amp;gt;$myValue$&amp;lt;/scale&amp;gt;&lt;BR /&gt;&amp;lt;/format&amp;gt;&lt;/P&gt;
&lt;P&gt;but myValue is not interpreted&lt;/P&gt;
&lt;P&gt;Is it possible to solve ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 13:47:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643051#M222747</guid>
      <dc:creator>mxh7777</dc:creator>
      <dc:date>2023-05-11T13:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use token in &lt;scale&gt; tag?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643136#M222783</link>
      <description>&lt;P&gt;I believe that tokens are used for queries, not other elements in dashboard.&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 05:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643136#M222783</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-05-12T05:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use token in &lt;scale&gt; tag?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643144#M222789</link>
      <description>&lt;P&gt;You can certainly use tokens almost anywhere in a dashboard, including inside embedded CSS and other formatting places - but not ALL.&lt;/P&gt;&lt;P&gt;HOWEVER, for some odd reason it does NOT appear to work in the &amp;lt;scale&amp;gt; definition of a threshold colorPalette.&lt;/P&gt;&lt;P&gt;Don't worry though, you can still achieve it this way, but using an expression type.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;format type="color" field="myValue"&amp;gt;
  &amp;lt;colorPalette type="expression"&amp;gt;if(value&amp;gt;$sc$, "#FFFFFF", "#D41F1F")&amp;lt;/colorPalette&amp;gt;
&amp;lt;/format&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;You can also use case statements and have a bunch of case statements where you can define different colours.&lt;/P&gt;&lt;P&gt;Note also that you can use tokens in place of the fixed colour definitions. I often use this to load a colour schema from a settings file into tokens and then I can change all the colour scheme of a dashboard just by changing the settings (CSV) file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 May 2023 06:38:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-token-in-lt-scale-gt-tag/m-p/643144#M222789</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-05-12T06:38:26Z</dc:date>
    </item>
  </channel>
</rss>

