Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results forย

All Apps and Add-ons

Showing results forย

- Community
- :
- Splunk Answers
- :
- Apps and Add-ons
- :
- All Apps and Add-ons
- :
- Calculating percentage of data in a table

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark Topic
- Subscribe to Topic
- Mute Topic
- Printer Friendly Page

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

Kendrick33

Explorer

โ11-09-2010
09:23 PM

I have a table with different types of data that has been age off. I know how get a sum of the data in each row by doing the following: chart sum(Rows) by Table

I know how to get the total of all the rows by the following: chart sum(Rows).

What I'm trying to do is get the percentage of each type out of the total number of rows

So if data types were

abc 100 cde 25 efg 25

how would I do this?

1 Solution

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

Kendrick33

Explorer

โ11-12-2010
03:02 PM

Each item is written on its separtate line ex. (Table=ABC Deleted Rows=50) I can get the sum off all the data. The problem has been trying to store each item by Table type.

what I had was

stat sum(Rows) as AllAgedOff | stats sum(Rows) by Table) which will result in NO RESULTS FOUND.

If I can store each Table type, the math should be no problem. The results will be each value by Table type divided AllAgedOff multiplied by 100.

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

Kendrick33

Explorer

โ11-12-2010
03:02 PM

Each item is written on its separtate line ex. (Table=ABC Deleted Rows=50) I can get the sum off all the data. The problem has been trying to store each item by Table type.

what I had was

stat sum(Rows) as AllAgedOff | stats sum(Rows) by Table) which will result in NO RESULTS FOUND.

If I can store each Table type, the math should be no problem. The results will be each value by Table type divided AllAgedOff multiplied by 100.