# Conditional visualisation is case that 0 docs are returned

**URL:** <https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287>\
**Category:** Kibana\
**Created:** [February 21, 2020, 3:21am UTC](https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287 "2020-02-21T03:21:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 21, 2020, 3:21am UTC](https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287/1 "2020-02-21T03:21:36Z")

</div>

Hello All,  
I have many situations where I want to show some values but 0 docs are returned.  
In such a case, the visualisation is empty. It is not clear just by looking at the dashboards if this is OK or there is a bug (data, network connectivity, permissions, etc.)  
Is there a way to show something instead else of a blank visualisation/default text?  
i.e  
if(number or docs = 0)  
show visualisation X  
else  
show visualisation Y

 ![2020-02-21 14_17_06-VicRoads - CommvaultRaw Overview - Unisys Kibana](https://us1.discourse-cdn.com/elastic/original/3X/a/4/a4ed3143d0cca20abaf61fc86186afabfe5e64b9.png)

Cheers!!

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 24, 2020, 6:15pm UTC](https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287/2 "2020-02-24T18:15:08Z")

</div>

There isn't a way to have conditional visualization loading in a dashboard.

> It is not clear just by looking at the dashboards if this is OK or there is a bug (data, network connectivity, permissions, etc.)

I'm not sure what kind of visualizations you have, but it might be useful to avoid that confusion if there are additional visualizations, or the visualizations have an additional data series to compare the latest data with "yesterday" or "last hour" etc.

Just a thought: hope it helps.

---

<div class="post-metadata">

**Author:** ![AClerk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aclerk/32/55297_2.png) [@AClerk](https://discuss.elastic.co/u/AClerk)\
**Post date:** [February 25, 2020, 1:35am UTC](https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287/3 "2020-02-25T01:35:54Z")

</div>

Hi @tsullivan  
Thanks for the reply.  
Yes, I have thought about those workarounds, but it confuses the users. Some of the users are not technical and any redundant/extra visualisation will just confuse them.

I really am after some indication that will show me and the users that there is nothing wrong with the dashboards in case there is no data to show.

Cheers!

---

<div class="post-metadata">

**Author:** ![tsullivan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tsullivan/32/31077_2.png) [@tsullivan](https://discuss.elastic.co/u/tsullivan)\
**Post date:** [February 25, 2020, 6:25pm UTC](https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287/4 "2020-02-25T18:25:57Z")

</div>

Hm, well one way to add contextual information to the dashboard is to add a Markdown visualization with a helpful explanation written. Not sure if that would work for your case, but users might just need to see the message saying it's normal for there to be times when visualizations have no data to show.

---

<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:** [March 24, 2020, 6:26pm UTC](https://discuss.elastic.co/t/conditional-visualisation-is-case-that-0-docs-are-returned/220287/5 "2020-03-24T18:26:00Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
