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
srirama
New Member

Aggregate minute data to hourly in a day

Hi team,

 

Please help me how to aggregate minute data to hourly in a day. Please refer below images.

 

Original Table

 

DateTimeTAPAPAcPSL
01-07-202200:008387
01-07-202200:019689
01-07-202200:026844
01-07-202200:038353
01-07-202200:048553
01-07-202200:055348
01-07-202201:008625
01-07-202201:017573
01-07-202201:023788
01-07-202201:034638
01-07-202201:048366
01-07-202201:053286

 

srirama_0-1682942519308.png

 

 

1 ACCEPTED SOLUTION
v-jianboli-msft
Community Support
Community Support

Hi @srirama ,

 

Approve with @amitchandak , besides you can try:

First add a new column:

 

Hour = TIME(HOUR([Time]),0,0)

 

vjianbolimsft_0-1684983868305.png

Then you can add the field you need and choose the correct aggregation:

vjianbolimsft_1-1684983993077.png

 

Final output:

vjianbolimsft_2-1684984014493.png

Best Regards,

Jianbo Li

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

2 REPLIES 2
v-jianboli-msft
Community Support
Community Support

Hi @srirama ,

 

Approve with @amitchandak , besides you can try:

First add a new column:

 

Hour = TIME(HOUR([Time]),0,0)

 

vjianbolimsft_0-1684983868305.png

Then you can add the field you need and choose the correct aggregation:

vjianbolimsft_1-1684983993077.png

 

Final output:

vjianbolimsft_2-1684984014493.png

Best Regards,

Jianbo Li

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

amitchandak
Super User
Super User

@srirama , You can have a new colum

 

if time is text 

= left([time],2)

 

if time is time data type

format([time], "hh")

 

and then you can group the data by hour

 

or you can take help from time table

https://kohera.be/power-bi/how-to-create-a-time-table-in-power-bi-in-a-few-simple-steps/

 

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.