# Comparing the previous data and current data and show in visualization

**URL:** <https://discuss.elastic.co/t/comparing-the-previous-data-and-current-data-and-show-in-visualization/216852>\
**Category:** Kibana\
**Created:** [January 28, 2020, 2:07pm UTC](https://discuss.elastic.co/t/comparing-the-previous-data-and-current-data-and-show-in-visualization/216852 "2020-01-28T14:07:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanikr](https://avatars.discourse-cdn.com/v4/letter/v/c89c15/32.png) [@vanikr](https://discuss.elastic.co/u/vanikr)\
**Post date:** [January 28, 2020, 2:07pm UTC](https://discuss.elastic.co/t/comparing-the-previous-data-and-current-data-and-show-in-visualization/216852/1 "2020-01-28T14:07:52Z")

</div>

Hi Experts,  
Please help on this particular scenario to create visualization. I am creating reports for automation testing ran.I have few documents for testcases ran for different builds  
Now i want to show last two builds Passed and Failed cases status.  
For Example  
Build No : 1 ,2 and 3  
Some testcases are there  
Last two builds are 2 and 3  
There are some cases passed in build no 2 and failed in build no 3.  
I want to show the metrics for this  
lile  
Build No 2: Passed : 2  
Build No 3 : Failed : 2  
Basically regressed number of testscases count i want to show.  
I have the status field for each document.  
status : PASSED  
status : FAILED  
so bacically if any document's status field changed from Passed to failed i want to show that count and that testcases.  
Please help on this. How to create a vizualization.

---

<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:** [February 25, 2020, 2:07pm UTC](https://discuss.elastic.co/t/comparing-the-previous-data-and-current-data-and-show-in-visualization/216852/2 "2020-02-25T14:07:54Z")

</div>

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