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

Splunk Query