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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Fusilier2
Helper V
Helper V

Trying to add a date/time card to a report

I'm trying to add a card or similar to my report that will show when a report was last refreshed.

Can anybody point me to some simple instructions?

I tried following this YouTube video from the Guy in a Cube channel:

Date/Time 

However, when I get to the stage where I'm supposed to convert the query into a table (1.12), I'm not given the option to convert to a table:

date and time.PNG

Don't know if this is beacause PBI has changed since the video was made (2021) and 

I'm using the November 2024 vdesktop version, or because I'm doing something wrong? Although I think I've followed the video step by step.

Can anybody help please?

1 ACCEPTED SOLUTION
Bibiano_Geraldo
Super User
Super User

Hi @Fusilier2 ,

Go to Advanced editor and paste this M code:

let
    Source = DateTime.LocalNow(),
    #"Converted to Table" = #table(1, {{Source}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type datetime}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "Last Refreshed Date"}})
in
    #"Renamed Columns"

This will result in this table with a sinlge column:

Bibiano_Geraldo_0-1738058216645.png

 

View solution in original post

2 REPLIES 2
Fusilier2
Helper V
Helper V

Thank you very much. Works like a dream!

Bibiano_Geraldo
Super User
Super User

Hi @Fusilier2 ,

Go to Advanced editor and paste this M code:

let
    Source = DateTime.LocalNow(),
    #"Converted to Table" = #table(1, {{Source}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Converted to Table",{{"Column1", type datetime}}),
    #"Renamed Columns" = Table.RenameColumns(#"Changed Type",{{"Column1", "Last Refreshed Date"}})
in
    #"Renamed Columns"

This will result in this table with a sinlge column:

Bibiano_Geraldo_0-1738058216645.png

 

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.