Recent searches
No recent searches
[Explore tip] Last Refresh Timestamp
Community Moderator
Posted Oct 22, 2019
Last refresh v last ticket updated
The last time a dataset was refreshed is not available directly. But we can estimate that by the latest ticket update timestamp. You can then create a query to display the timestamp and include it in a dashboard for easy access.
Query
In Explore, create a new query based on the Support: Tickets [default] dataset.
Filter
- Ticket Updated -Date> This Week
Metrics
- Got to Calculations>Standard calculated metric:
- DATE_DIFF(now(),[Ticket updated - Timestamp],"nb_of_minutes")
- From the Options menu, select 'Edit aggregators'
- Make all options invisible, except for MED
- From the options menu, select 'Edit display format'
- Select 'Custom'
- In the suffix box, enter ' Minutes Ago' (note the leading space before 'Minutes')
- Add your new metric to the query
Rows
- Go to Calculations>Top/ Bottom attribute and create a new attribute 'Last Sync Timestamp'
- Add the new attribute to the the query rows
Chart configuration
- Go to Chart Configuration>Chart> Header visibility
- Hide the header
- Go to Chart Configuration>Applied Filters
- Uncheck 'Show applied filters'
Final report
Save your report and give it a name suitable for display in your dashboard.
Dashboard
You can now add your query to a dashboard. But we need to ensure any dashboard filters do not apply to this query.
If your dashboard contains filter:
- Select your query
- Select 'Exclude filters'
- Exclude any time filters and any data filters from the query
2
4
4 comments
Official
Rob Stack
Hi Graeme, thanks for posting this great tip. I've certainly heard the question about how this can be done a few times now.
While we should leave this here as a tip, I'm wondering if you'd give me permission to add it to our Explore recipes also? - https://support.zendesk.com/hc/en-us/articles/360022186054 - I think it would fit really well there.
I'd need to do some very minor formatting to make it fit the style of the other recipes but obviously the article would remain credited to you. What do you think? :-)
0
ZZ Graeme Carmichael
Rob
Yes that is no problem. It is hard for me to know what is best practice for Explore and what can be done better. But if you are happy with that then go for it.
1
Rob Stack
Republished recipe at https://support.zendesk.com/hc/en-us/articles/360038309894
0
Alfredo Iglesias
This is a great turnaround, thank you!
0