- Eg. Data in excel sheet with columns(A, B,...H) and rest are the values for the corresponding columns.
- COLUMN A,B belongs to SourceTypeA
- COLUMN C,D,E belongs to SourceTypeA
- COLUMN F,G belongs to SourceTypeA
- A B C D E F G H
- 4778521 3174 26 172265 19441 0 3 63337
- 0 12546 0 0 0 0 0 0
- 0 8613 0 0 0 0 0 0
- 0 0 0 0 0 0 0 0
- 0 874 0 0 0 0 0 0
- Formula - ((A/((SUM(A,B,H)-SUM(D,C,G,E,F)))100))
- We want to calculate above Formula in Splunk using above values.
Splunk Query