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
aescoba
Regular Visitor

Events for a Period time

Hello I'm begings to use Power BI and I'm interesting to know if someone can help.

 

Problem:

How to measure the correct Duration by Hour?

If I sum the column"Hour" I get a wrong value of 143 instead of 104.18 as table below.

My doubt is I need to duplicate the rows breakdown the times or it's possible a metric to analize the data.

 

 

StartEndDuration (sec)hour
2022-09-09T07:58:15.7532022-09-09T07:58:21.82067
2022-09-09T07:58:21.8202022-09-09T08:00:38.3571377
2022-09-09T08:00:38.3572022-09-09T08:04:48.4502508

 

HourSUM_Duration by hourSum_Duration by period
7143                                     104.18
8250                                     288.82
1 REPLY 1
lbendlin
Super User
Super User

Your request is much more complex than it may sound.  For each event you need to find the intersect of your event interval with the Hour buckets. Events can also span multiple hours and even days.

 

- Please confirm that second level accuracy is enough. Specify the rounding rules

- Specify the expected bucket sizes (hours/days etc)

- Confirm that you want all this to be done in UTC

- provide sample data that covers all scenarios

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.