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
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
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.