Forum Discussion
Date only update when refresh
- 3 years ago
Hi Anonymous,
Please follow the below steps to create a new table we use it to get the Last Refreshed Date
- Open Transform Data
- Click on New Source and choose Blank Query
- Click on Advanced Editor and insert the below script:
let
Source = #table(type table[Date Last Refreshed = datetime], {{DateTime.LocalNow()}})
in
SourceThose steps will create a table with 1 value which is the Last Refreshed Date, change the type of this column to Date
now in your measure, change the below formulaVAR _today = TODAY()
To
VAR _today = MAX('LastRefreshedTable'[Date])
This field will only refresh when you Refresh the table "LastRefreshedTable"
- 3 years ago
Hi ReneMoawad
I am new to this method and when I type in the equation you provided, the table is not creating, may you please share how you do it?
- Anonymous3 years agoNot applicable
Thanks! The equation is working, I will further have a test tomorrow to see whether the date will only update on refresh.