I have a stats calculated using :
stats distinct_count(c1) by c2
Now I want to calculate the sum of these distinct_counts and display as a single number.
@waghuldese1
<your query>| stats distinct_count(c1) as dc by c2| stats sum(dc) as sum
@waghuldese1
<your query>| stats distinct_count(c1) as dc by c2| stats sum(dc) as sum