Adding Last data refresh timestamp in the Dashboard

Hi @sbaskax if the week is an integer field, create an Insight and use the Maximum computation, then insert the formattedValue variable into your narrative (with whatever other text you want).

1 Like


@Jesse , my dataset don’t have date field, with out date field i couldn’t able to get the last updated week

@sbaskax you will need to add a calculated field in your dataset that uses the formula ‘now()’. See the screen Im talking about from the earlier post in the thread from Oct 2022: Adding Last data refresh timestamp in the Dashboard - #7 by Jesse

Hello @Jesse

Thanks for posting your solution.

The now() function is only giving the current time and it is not the exact time as the SPICE last refresh.

I understand that these both values can coincide when viewing the analysis/dashboard which refreshes at the same time making the values same. However, if we check at the dataset level itself, just refreshing the browser updates the now() value but not the SPICE refresh timestamp.

Therefore, I don’t think this is a reliable solution. Can you please correct me if I am wrong ?

Hi @SaiChema this will only work if you are using SPICE, and if so you need to add the now() calculation into the dataset, not in the analysis. When you add it in the dataset it gets materialized at the time of each refresh.

I added the now function, but the maximum values does not work

this is the narrative

image

Hi @remba87 - Which part are you referring to as not working? Is it that you are getting multiple timestamps? If so, are you using incremental refresh? This solution is assuming you are doing a full refresh. If doing a full refresh you should only have 1 value for the Now field (in your screenshot I see 4 different values). If using incremental, it will only refresh the values in the rows that were in the ‘lookback window’, which is what could result in different ‘frozen’ timestamps in that column.

If you are rather referring to the format of the displayed date, you can change the format on the field that is in your Field Wells in that Insight visual.

Hi @Jesse,

Yes I am doing an incremental refresh…but still, should not I see the max values there anyway?

also, Max of a timestamp - Question & Answer - Amazon QuickSight Community

do you have any idea why if I have a minute aggregation I have one result and if I have the second it is another?

Hi @remba87 - I replied over on your other question