Dashboards & Visualizations

How to add empty row after each unique value in a field?

dzyfer
Path Finder

My data currently looks like this:

DateName
2022-11-01ABC
2022-11-01DEF
2022-11-01GHI
2022-11-02JKL
2022-11-02MNO
2022-11-03PQR
2022-11-03STU
2022-11-03VWX
2022-11-03YZ1

 

I would like it to look like this:

DateName
2022-11-01ABC
2022-11-01DEF
2022-11-01GHI
  
2022-11-02JKL
2022-11-02MNO
  
2022-11-03PQR
2022-11-03STU
2022-11-03VWX
2022-11-03YZ1

 

I need an empty row to be inserted whenever the Date differs from the value before it.

Labels (3)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
| appendpipe 
    [| stats count by Date]
| fillnull value=0 count
| sort 0 Date count
| eval Date=if(count>0,null(),Date)
| fields - count

View solution in original post

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust
| appendpipe 
    [| stats count by Date]
| fillnull value=0 count
| sort 0 Date count
| eval Date=if(count>0,null(),Date)
| fields - count
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @dzyfer,

could you share your search?

by default isn't possible, but it's possible to find a workaround.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Customer Experience | Splunk 2024: New Onboarding Resources

In 2023, we were routinely reminded that the digital world is ever-evolving and susceptible to new ...

Celebrate CX Day with Splunk: Take our interactive quiz, join our LinkedIn Live ...

Today and every day, Splunk celebrates the importance of customer experience throughout our product, ...

How to Get Started with Splunk Data Management Pipeline Builders (Edge Processor & ...

If you want to gain full control over your growing data volumes, check out Splunk’s Data Management pipeline ...