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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
PattemManohar
Community Champion
Community Champion

@まもる 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 PBI Community Champion




View solution in original post

3 REPLIES 3
PattemManohar
Community Champion
Community Champion

@まもる 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 PBI Community Champion




Wonderful great

@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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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