# How to use timefilter element to filter time and affect to some element that integrate with itself?

**URL:** <https://discuss.elastic.co/t/how-to-use-timefilter-element-to-filter-time-and-affect-to-some-element-that-integrate-with-itself/349781>\
**Category:** Kibana\
**Created:** [December 21, 2023, 9:40am UTC](https://discuss.elastic.co/t/how-to-use-timefilter-element-to-filter-time-and-affect-to-some-element-that-integrate-with-itself/349781 "2023-12-21T09:40:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dy\_Vanrith](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dy_vanrith/32/130209_2.png) [@Dy\_Vanrith](https://discuss.elastic.co/u/Dy_Vanrith)\
**Post date:** [December 21, 2023, 9:40am UTC](https://discuss.elastic.co/t/how-to-use-timefilter-element-to-filter-time-and-affect-to-some-element-that-integrate-with-itself/349781/1 "2023-12-21T09:40:22Z")

</div>

Example i have 2 element  
One element for report canvas base on date that i want to filter

filters  
| essql query= { string "SELECT \* FROM "2023.12.\*" " }  
| markdown  
"  
{{#each rows}}

| Total Rejected | Total Retract | Total Count USD | Total Count KHR |
| --- | --- | --- | --- |
| {{totalRejects}} | {{actualRetracts}} | {{total1Currency}} | {{total2Currency}} |
| {{/each}} | | | |
| " | | | |
| render | | | |
| css=" | | | |
| .canvasRenderEl { | | | |
| font-family: Arial, sans-serif; | | | |
| display: flex; | | | |
| flex-direction: row; | | | |
| justify-content: space-between; | | | |
| } | | | |

.canvasMarkdown h1 {  
font-size: 24px !important;  
}

.canvasMarkdown h2, .canvasMarkdown p {  
color: #666666;  
font-size: 14px;  
}

.canvasMarkdown table {  
width: 100%;  
border-collapse: collapse;  
}

.canvasMarkdown th, .canvasMarkdown td {  
border: 1px solid #ddd;  
font-size: 8px;  
text-align: left;  
color: #191970;  
}

.canvasMarkdown th {  
background-color: #f2f2f2;  
}

.canvasMarkdown tr:nth-child(even) {  
background-color: #f9f9f9;  
}  
"

and second element is timefiler

timefilterControl compact=true column=@timestamp  
| render

how to select time filter and effect to one element base on time select please modify my code.

Thanks u in advance !!!

---

<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:** [January 18, 2024, 9:41am UTC](https://discuss.elastic.co/t/how-to-use-timefilter-element-to-filter-time-and-affect-to-some-element-that-integrate-with-itself/349781/2 "2024-01-18T09:41:13Z")

</div>

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