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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Fusilier2
Helper IV
Helper IV

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 IV
Helper IV

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors