# Canvas filter visualization based on some other timestamp field

**URL:** <https://discuss.elastic.co/t/canvas-filter-visualization-based-on-some-other-timestamp-field/342601>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [September 8, 2023, 10:24am UTC](https://discuss.elastic.co/t/canvas-filter-visualization-based-on-some-other-timestamp-field/342601 "2023-09-08T10:24:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mathur7vidit](https://avatars.discourse-cdn.com/v4/letter/m/d07c76/32.png) [@mathur7vidit](https://discuss.elastic.co/u/mathur7vidit)\
**Post date:** [September 8, 2023, 10:24am UTC](https://discuss.elastic.co/t/canvas-filter-visualization-based-on-some-other-timestamp-field/342601/1 "2023-09-08T10:24:29Z")

</div>

Team,  
i am trying to use canvas and i have placed a time filter which is using column modified\_date as column.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/9/f/9fc8d6e691a2c9438f015f8d32385f1888ae4f7a.png)

Now i am creating a metric visualization and it is not showcasing anything when above column is selected as time field.

also, when i am trying to create visualization using expression editor, its giving me count of all document in that particular index rather than based on time selected

kibana  
| selectFilter from=p2p  
| esdocs index="abc-2023.08.23-000004"  
| math "size(number)"  
| metric "total count"  
| render

any suggestion is appreciated. thanks

---

<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:** [October 6, 2023, 10:24am UTC](https://discuss.elastic.co/t/canvas-filter-visualization-based-on-some-other-timestamp-field/342601/2 "2023-10-06T10:24:58Z")

</div>

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