Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello all,
I hope you're all doing well.
I want to determine the total number of hours between the instances when the status was "On Hold" and the subsequent status.
At this moment, I am using a calculated column
Total onhold difference(Business hours) =
Var start_ =
CALCULATE(
MAX('Case history'[Created Date]),
'Case history'[New Value] = "On Hold" &&
'Case history'[Field] = "Status"
)
Var end_ =
CALCULATE(
MAX('Case history'[Created Date]),
'Case history'[Old Value] = "On Hold" &&
'Case history'[New Value] <> "On Hold" &&
'Case history'[Field] = "Status"
)
return
SUMX(
CALCULATETABLE(
'Calendar table',
DATESBETWEEN('Calendar table'[Date],start_,end_),
'Calendar table'[weekday] = 1
),
MAX(MIN('Calendar table'[end],end_)-MAX('Calendar table'[start],start_),0)*24)I have attached the link to the power bi file
https://drive.google.com/file/d/1wtJIpwRktMROzQPfL3HSoecDEXbDj2K2/view?usp=sharing
Could you please help me here?
Thank you so much in advance
Could anyone please help me with this? Any help would be much appreciated:)
Hello all,
it would be really helpful if you guys give me any suggestions on this topic 🙂
Thank you from the mountain
Regards
Kate
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |