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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DSwezey
Helper III
Helper III

Getting Current Time not populating column

Hi, I want to simply get the current date and time when I refresh my dataset, but I am getting no value when I hit refresh on my table with column: DateTime.LocalNow().

 

DSwezey_0-1641329551329.png

And when I pull this column into a card it just shows the "Count of Year"

DSwezey_1-1641329620240.png

Any ideas why no date/time is being populated in my column?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @DSwezey ,

 

I had a test on my side:

Eyelyn9_1-1641542527430.png

You may click the refresh button to load data:

Eyelyn9_3-1641543154992.png

 

Actually I could reproduce your issue by following these steps:

reproduce date issue.gif

 

So please firstly click the Card visual and drag the Date & Time field to it, you will get the expected output:

Eyelyn9_2-1641542706160.png

 

Or you could use NOW() to create a calculated column:

Eyelyn9_4-1641543254571.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

9 REPLIES 9
Anonymous
Not applicable

Hi @DSwezey ,

 

I had a test on my side:

Eyelyn9_1-1641542527430.png

You may click the refresh button to load data:

Eyelyn9_3-1641543154992.png

 

Actually I could reproduce your issue by following these steps:

reproduce date issue.gif

 

So please firstly click the Card visual and drag the Date & Time field to it, you will get the expected output:

Eyelyn9_2-1641542706160.png

 

Or you could use NOW() to create a calculated column:

Eyelyn9_4-1641543254571.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Community Champion
Community Champion

@DSwezey Are you sure you pulled in the right column? Because it looks like you pulled in the "Year" column. Otherwise it should say Count of Date & Time.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Yes I am pulling in my "Date & Time" column which is just:

DateTime.LocalNow()

@DSwezey Can I see a screen shot of the Date & Time column in your Data view? Does it have the actual date and time?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

It's not being populated at all...

DSwezey_0-1641331559270.png

 

@DSwezey Well, something has to be there or it would not be a count of 365. Oh, try in the visualization pane to wipe out the hierarchy and just use the actual date value perhaps? That's super weird.

 

Here is a query that I am using in Mastering Power BI 2nd Edition:

let
    RefreshDateTime = DateTime.LocalNow(),
    TimeZoneOffset = -5,
    RefreshDateTimeAdjusted = RefreshDateTime + #duration(0,TimeZoneOffset,0,0),
    RefreshDateAdjusted = DateTime.Date(RefreshDateTimeAdjusted),
    TableCreate = Table.FromRecords({[CurrentDate = RefreshDateAdjusted]}),
    DateType = Table.TransformColumnTypes(TableCreate,{"CurrentDate", type date})
in
    DateType


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I tried removing the hierchy but that also did not get any data of a refresh.

 

DSwezey_0-1641332858166.png

 

@DSwezey OK, so what if you go into Power Query Editor, does the date and time show up there?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Nope, no date and time show in either the Power Query editor or the visual

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.