Dashboards & Visualizations

Dashboard format: color a cell of a column (with different value)

dhirajkumar2121
Loves-to-Learn Lots

Hi!

I  have a dashboard with 10 columns,

If value of column 1 and column 2 is different I have to make it as red color,

Similarly I have to do it for column 3-4, 5-6, 7-8, 9-10.

dhirajkumar2121_0-1710749467034.png

I am using below code but it marking whole column red.(I only need red color for values which is different.)

<format type="color" field="Storenumber" >
<colorPalette type="expression"> if (Storeid!=Storenumber,"#53A051","#DC4E41")</colorPalette>

dhirajkumar2121_1-1710749559034.png

 

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

You can do this by extending the cells to be a multivalue field with the colour in the second cell and then hide the second cell with css - this assumes Classic dashboard

Solved: Re: How to color cells based on there values and b... - Splunk Community

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, ...