Splunk Search

stacked column chart for three values

SanthoshSreshta
Contributor

Hi All,

I have generated a dashboard with column chart using Query: sourcetype="Churn Data_CSV" Churn="True." | stats count(Churn) as "Churn Count" by state |sort - "Churn Count" |head 10

In the above query I used only Churn="True" but now I want to get for TRUE and FALSE for every state showing in stacked column chart.
Can anyone help me out please.?

Regards,
Santhosh S.

0 Karma
1 Solution

SanthoshSreshta
Contributor

Got my answer 🙂

sourcetype="Churn Data_CSV" | stats count(eval(Churn="True.")) as True, count(eval(Churn="False.")) as False,count(eval(Churn="")) as Empty by state | sort - True| head 10

View solution in original post

SanthoshSreshta
Contributor

Got my answer 🙂

sourcetype="Churn Data_CSV" | stats count(eval(Churn="True.")) as True, count(eval(Churn="False.")) as False,count(eval(Churn="")) as Empty by state | sort - True| head 10

Get Updates on the Splunk Community!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...