Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Sam88
Frequent Visitor

TODAY() and NOW() functions in Calculated Columns

Hi!

I've a doubt.
In a Report I've created a Parameter Table that a contains a reference date calculated with Today() function (or Now(), it's the same)...

 

ParameterValue
Ref. Date" Value = TODAY()"

 

Then I've used this value in some other measures.
I would like to know when "Value" field is updated because I thought that it would be calculated when refresh data, but instead every time I reopen the pbix it already contains new value.

P.s. I know that I can use as this parameter an M calculated column with Time.Local.Now(), or maybe a parameter if I need to change manually directly in powerbi service with another specific date in some situations.

thanks,

best regards.

1 ACCEPTED SOLUTION
v-yuta-msft
Community Support
Community Support

@Sam88 ,

 

The NOW() and TODAY() function will always return the real time/date, they don't depend on the data in your model. Calculate columns and measures will be changed once the data table is refreshed in your data model(suppose in import mode).

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Sam88 ,

 

The NOW() and TODAY() function will always return the real time/date, they don't depend on the data in your model. Calculate columns and measures will be changed once the data table is refreshed in your data model(suppose in import mode).

 

Regards,

Jimmy Tao

jdbuchanan71
Super User
Super User

@Sam88 

Calculated columns are refreshed whenever the table is processed.  In PowerBI desktop that is when you open the the file but when you publish to the service it happens when the model is refreshed.

https://www.sqlbi.com/articles/calculated-columns-and-measures-in-dax/

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.