Splunk Search

How to sort columns in chart with row-split

lem
New Member

Hi,

I need to graph data per Area split by WeekNumber:

| chart Values by Area WeekNumber
Both - Values and WeekNuber are numbers, however WeekNmubers in the graph are sorted as if they are string type ( 10, 11, 9 instead of 9, 10, 11).
alt text
If I swap series:
| chart Values by WeekNuber Area
the WeekNumbers are sorted correctly on X-Axis (9, 10, 11).
alt text
I tried using "sort WeekNumber" and didn't have any impact on column order.

Any help is greatly appreciated.

0 Karma
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

As a mildly dirty workaround, you could use 09 as your week number - then string ordering will do what you need.

View solution in original post

0 Karma

mikymasterlace
New Member

[OT] sorry this is not an answer, but could you tell me how to display values above the columns charts? thankyou so much!

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

In the chart's format menu's general tab, turn on "show data values".

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

As a mildly dirty workaround, you could use 09 as your week number - then string ordering will do what you need.

0 Karma

lem
New Member

Thank you Martin, Appending zero did the trick. Wish there was a better way to do this though. Cheers!

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