Hello,
I am trying to use the stats command with 2 different where clauses with the end result being to use the 2 values to provide the total of scenario 1 displayed as a number and a percentage of scenario 2.
For example I have a total of 50 referrals (where clause 1) and a total of 100 quotes (where clause 2). The table would display 50 in one column and 50% in the other (reflecting half of the total quotes were referred.
My stats component of the search is
...| where acc="Inc" AND Stage = "Quote" AND processStatus="ManualRatingRequired" | stats count AS "Referrals" | appendcols [where acc="Inc" AND Stage = "Quote" | stats count AS tQuotes]
The first part is working and returns the expected number but the second (appendcols) returns 0. If I switch it around then the first part returns the expected total, but not the number of referrals.
I have tried various methods, but none seem to be achieving what I am trying to achieve.
Any pointers will be greatly appreciated and will go along way to saving my sanity.
Cheers,
Alastair
... View more