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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.