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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...