- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

I want a cumulative count of a field that has multiple values. Somehow this isn't working:
base search| streamstats count(State) as dur time_window=1w| timechart sum(dur) by State span=1w
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Try this (always have span just after timechart command)
base search| timechart span=1w count by State | streamstats sum(*) as *
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Try this (always have span just after timechart command)
base search| timechart span=1w count by State | streamstats sum(*) as *
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Voila! You're there! Thanks! I expect some admin to convert your comment to the answer! Amazing job! Thank you.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

And the community expects you to accept the answer, please. 😉
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Please explain your use case (your desired ending dataset).
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

something like this does solve my problem as @somesoni2 suggested but I would like to see data split into weeks instead of months:
base search| timechart count by State span=1w | streamstats sum(*) as *
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

How about this?
base search| timechart count by State span=1w | streamstats sum(*) as *
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

this pretty much solves it except that I see the results split into months instead of weeks as desired.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

can you give some example data and expected results? a few more details might make this easier to answer, thanks 🙂
you might need to sort your events before your streamstats since you're doing a time_window.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

something like this does solve my problem as @somesoni2 suggested but I would like to see data split into weeks instead of months:
base search| timechart count by State span=1w | streamstats sum(*) as *
