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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...