Splunk Search

How to remove zeros from appearing on my stacked column chart?

chintan_shah
Path Finder

I am trying to get a stacked column chart with items sold by agent at each location.

I have the below search:

stats count by "Locations","Emp_Name" |chart sum(count) over "Locations"  by  Emp_Name where top20.

In this case, the chart is showing with the stack values, but also shows 0 in between the stacks.

HattrickNZ
Motivator

Maybe you need to manually remove/add the columns you desire fields - colnames?

0 Karma

sundareshr
Legend

Try this

stats count by "Locations","Emp_Name" | where count>0 |chart sum(count) over "Locations"  by  Emp_Name
0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

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