Dashboards & Visualizations

ColorPalette Expression using case providing an wrong answer

vengat4043
Path Finder

Panel_1:
<set token="V20">$result.value_20$</set>
<set token="V40">$result.value_40$</set>
<set token="V0">$result.value_0$</set>
<set token="V100">$result.value_100$</set>

Panel_2:


<format type="color" field="&gt;6hrs-&lt;8hrs">
<colorPalette type="expression">case(value&lt;="$V20$", "#006400", value&gt;"$V20$" AND value&lt;="$V40$", "#ffb200", value&gt;"$V40$", "#800000")</colorPalette>
</format>
<format type="color" field="&gt;8hrs-&lt;10hrs">
<colorPalette type="expression">case(value&lt;="$V20$", "#006400", value&gt;"$V20$" AND value&lt;="$V40$", "#ffb200", value&gt;"$V40$", "#800000")</colorPalette>
</format>
<format type="color" field="&gt;10hrs-&lt;12hrs">
<colorPalette type="expression">case(value&lt;="$V20$", "#006400", value&gt;"$V20$" AND value&lt;="$V40$", "#ffb200", value&gt;"$V40$", "#800000")</colorPalette>
</format>
<format type="color" field="&gt;12hrs-&lt;14hrs">
<colorPalette type="expression">case(value&lt;="$V20$", "#006400", value&gt;"$V20$" AND value&lt;="$V40$", "#ffb200", value&gt;"$V40$", "#800000")</colorPalette>
</format>
<format type="color" field="&gt;14hrs-&lt;16hrs">
<colorPalette type="expression">case(value&lt;="$V20$", "#006400", value&gt;"$V20$" AND value&lt;="$V40$", "#ffb200", value&gt;"$V40$", "#800000")</colorPalette>
</format>

The above is Scenario, i have created the tokens from the Panel_1 result and passing those tokens into the Colorpalette expression to highlight the cells dynamically. But i can't able to reach the desired output. How can i reach the desired output?

Labels (1)
0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...