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
cristianml
Post Prodigy
Post Prodigy

DAX Formula for Last refreshed

Hi,

 

I need a DAX formula to use it with a visual in the model so END USERS can see the last time that the information was updated. 

 

visual- refresh.jpg

 

Regards.

 

1 ACCEPTED SOLUTION
Cmcmahan
Resident Rockstar
Resident Rockstar

So the easiest way to do this is via Power Query.

 

Stealing the idea from here

 

In your advanced editor, add a column to whatever table you want the refresh info from, and set the value equal to the current time in the advanced editor.  Display that in a card and you're good to go.

 

let
    Source = YourSource(Foo, Bar),
    #"Added Refresh Date" = Table.AddColumn(#"Source", "Refresh Date", 
        each DateTimeZone.FixedUtcNow(), type datetimezone)
in
    #"Added Refresh Date"

View solution in original post

1 REPLY 1
Cmcmahan
Resident Rockstar
Resident Rockstar

So the easiest way to do this is via Power Query.

 

Stealing the idea from here

 

In your advanced editor, add a column to whatever table you want the refresh info from, and set the value equal to the current time in the advanced editor.  Display that in a card and you're good to go.

 

let
    Source = YourSource(Foo, Bar),
    #"Added Refresh Date" = Table.AddColumn(#"Source", "Refresh Date", 
        each DateTimeZone.FixedUtcNow(), type datetimezone)
in
    #"Added Refresh Date"

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.