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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ibrahim_shaik
Helper V
Helper V

How to Aggregate Data Hourly and Display in a Line Chart

Hi Power BI Community,

 

I have a "time" column with 5 minute interval timestamps like 00:01:01, 00:05:01 and a number column which has decimal values.

 

How to aggregate values by hour and display the data Hourly on the Line Chart in Power BI.

 

I Used drill up it shows only daily data but not Every hour in a day.

 

Please give a solution.

 

Thanks&Regards,

Ibrahim. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @Ibrahim_shaik 

Based on your description, I have created DAX to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1710137502852.png


DAX

HourColumn = FORMAT('Data'[Time], "HH:MM")

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi, @Ibrahim_shaik 

Based on your description, I have created DAX to achieve the effect you are looking for. Following picture shows the effect of the display.

vyaningymsft_0-1710137502852.png


DAX

HourColumn = FORMAT('Data'[Time], "HH:MM")

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Ibrahim_shaik
Helper V
Helper V

Thank you for the response but this is not my requirement.

 

this is creates a Hour Column in this way

 

Hour Data.png

 

 I want the Every Hour timestamp like 01:00, 02:00, 03:00...... 23:00.

ThxAlot
Super User
Super User

Easy enough, add a calculated column of hour,

ThxAlot_0-1709903164785.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LearnAndPractise(Everyday)


)



Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.