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
krish003
Frequent Visitor

"Variant of Events in Progress" any Idea on how to solve this..?

Hi All,

 

I have a scenario similar to "Events in Progress" but the data is at minute level.

Objective: Calculate total Hours worked by Employee

 

How can I build this in Dax??

 

My approach was to compare data in "row 1" with data in "row 2" and update the variables in iterator (sumx(tbl, var true_start_time=...,true_end_time=.. Return, ....some_complex_dax.....)

 

but even this approach fails for the case, where there is a gap in the overlapping time frames; just as in the case in the img.

Shoot your thoughts or point me to resources if there are any that solves this issue.emp_hrs.JPG

1 REPLY 1
v-piga-msft
Resident Rockstar
Resident Rockstar

Hi @krish003,

 

Based on your information, I'm still a little confused about your logic. 

 

If it is convenient, could you share your data sample and your desired ouput in power bi.

 

I would appreciate it if you could describe your logic in more details.

 

Best Regards,

Cherry

Community Support Team _ Cherry Gao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.