# How would you do a unique count across 2 terms?

**URL:** <https://discuss.elastic.co/t/how-would-you-do-a-unique-count-across-2-terms/51815>\
**Category:** Kibana\
**Created:** [June 3, 2016, 5:22pm UTC](https://discuss.elastic.co/t/how-would-you-do-a-unique-count-across-2-terms/51815 "2016-06-03T17:22:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmassouda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bmassouda/32/10133_2.png) [@bmassouda](https://discuss.elastic.co/u/bmassouda)\
**Post date:** [June 3, 2016, 5:22pm UTC](https://discuss.elastic.co/t/how-would-you-do-a-unique-count-across-2-terms/51815/1 "2016-06-03T17:22:07Z")

</div>

How would you do a unique count across 2 terms? I have two terms that I want to combine into a unique count metric. Is there a way to do this in a visualization?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 4, 2016, 8:29am UTC](https://discuss.elastic.co/t/how-would-you-do-a-unique-count-across-2-terms/51815/2 "2016-06-04T08:29:31Z")

</div>

Are you doing a metric count, or something else?

---

<div class="post-metadata">

**Author:** ![bmassouda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bmassouda/32/10133_2.png) [@bmassouda](https://discuss.elastic.co/u/bmassouda)\
**Post date:** [June 6, 2016, 3:07pm UTC](https://discuss.elastic.co/t/how-would-you-do-a-unique-count-across-2-terms/51815/3 "2016-06-06T15:07:48Z")

</div>

I am actually trying to create the below table:

**Action, Count, Unique count of party**  
Veiw Customer, 508, 134  
View Organization, 49, 20

Right now the best i can do is this:

**Action, Count Unique count of accountId, Unique count of orgId**  
Veiw Customer, 508, 134, 0  
View Organization, 49, 0, 20

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:51pm UTC](https://discuss.elastic.co/t/how-would-you-do-a-unique-count-across-2-terms/51815/4 "2017-07-06T13:51:29Z")

</div>


