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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
kirbynguyen
Helper II
Helper II

Generated Datetime table

I am creating a datetime table with a row for every 5 minutes. Here is my code:

 

DateTime =
GENERATESERIES (
DATEVALUE ( MIN ( Table[Date] ) ),
DATEVALUE ( MAX ( Table[Date] ) ),
TIME ( 0, 5, 0 )
)

 

The values for Table[Date] actually don't matter and can be hard coded, so no actual data is needed to create this. For some reason, though, the datetime table works for about 20 days and then is off by one second. Instead of 1/21/2022 5:10:00 PM, it shows 1/21/2022 5:09:59 PM, and then every data point after that is off by one second (everything ends with 59 instead of 00.

 

kirbynguyen_0-1698760221448.png

 

Why is this happening and how do I fix it?

 

1 REPLY 1
HotChilli
Community Champion
Community Champion

Please see this thread:

https://community.fabric.microsoft.com/t5/Desktop/Time-series/m-p/3421416#M1135931 

 

I didn't investigate any further since the problem was solved but there will probably be a better way to generate times without having to do this

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.