cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
まもる Frequent Visitor
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

まもる Frequent Visitor
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
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors