cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
まもる
Frequent Visitor

Automatic generation of date and time data every 5 minutes.

I will post it for the first time.
Please let me know if you know.

 

I want to automatically generate date and time data every 5 minutes instead of date data like CALENDAR.

 

CALENDAR("2018/10/1",TODAY())
2018/10/01 0:00:00
2018/10/02 0:00:00
2018/10/03 0:00:00
2018/10/04 0:00:00
2018/10/05 0:00:00
etc.

 

The data I want (every 5 minutes)
2018/10/01 0:00:00
2018/10/01 0:05:00
2018/10/01 0:10:00
2018/10/01 0:15:00
2018/10/01 0:20:00
2018/10/01 0:25:00
2018/10/01 0:30:00
2018/10/01 0:35:00
2018/10/01 0:40:00
etc.

 

I can not speak English.  I'm sorry if English was wrong.
Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User I
Super User I

Re: Automatic generation of date and time data every 5 minutes.

@まもる Please try this as a "New Table"

 

Table = 
var _min = SELECTCOLUMNS(GENERATESERIES(0,60,5),"Minutes",[Value])
var _hour = SELECTCOLUMNS(GENERATESERIES(0,23),"Hour",[Value])
var _date = CALENDAR("2018-11-01","2018-11-02")
RETURN FILTER(CROSSJOIN(CROSSJOIN(_hour,_min),_date),[Minutes]<>0)

Then add a "New Column" (Which will be final expected output) as below

 

Final = [Date]+TIME('Table'[Hour],'Table'[Minutes],0)

image.png

 



Did I answer your question? Mark my post as a solution !

Proud to be a Datanaut !





View solution in original post

2 REPLIES 2
Super User I
Super User I

Re: Automatic generation of date and time data every 5 minutes.

@まもる Please try this as a "New Table"

 

Table = 
var _min = SELECTCOLUMNS(GENERATESERIES(0,60,5),"Minutes",[Value])
var _hour = SELECTCOLUMNS(GENERATESERIES(0,23),"Hour",[Value])
var _date = CALENDAR("2018-11-01","2018-11-02")
RETURN FILTER(CROSSJOIN(CROSSJOIN(_hour,_min),_date),[Minutes]<>0)

Then add a "New Column" (Which will be final expected output) as below

 

Final = [Date]+TIME('Table'[Hour],'Table'[Minutes],0)

image.png

 



Did I answer your question? Mark my post as a solution !

Proud to be a Datanaut !





View solution in original post

Highlighted
まもる
Frequent Visitor

Re: Automatic generation of date and time data every 5 minutes.

@PattemManohar

 

Hello.  Thank you for your information.
It's perfect!

Thank you very much.

 

 

 

I'm so sorry.  I have an additional question.

Do you know how to generate this with Power Query?

Thank you.

 

Helpful resources

Announcements
New Ranks Launched March 24th!

New Ranks Launched March 24th!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power BI Community!

‘Better Together’ Contest Finalists Announced!

‘Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Arun 'Triple A' Event Video, Q&A, and Slides

Arun 'Triple A' Event Video, Q&A, and Slides

Missed the Arun 'Triple A' event or want to revisit it? We've got you covered! Check out the video, Q&A, and slides now.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors