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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi Guys,
I need support on below calculation.
I need to show difference between Downtime_start and Downtime_end for Each ID. But the calculation should happen based on below conditions.
- Under one ID you will have different downtime start times,
- for Each Start time you have different modified times
So you need to do the calculation for unique Downtime_start and you need to consider the Downtime_start with Highest Modified time and for each unique Downtime_start you need to calculate the difference between start and end time and show the total in ID level.
Hope the requirement is clear.
This is the sample data.
PBI file link https://drive.google.com/file/d/1rzL-rMAly6YHCmOwsHdXfSKa9GdR7hLQ/view?usp=sharing
Thank you very much in Advance.
| Modified time | ID | DonwTime_Start | DownTime_End |
| 15/09/2021 6:07:14 AM | 75 | 12/09/2021 6:07 AM | 13/09/2021 6:11 AM |
| 15/09/2021 6:08:45 AM | 75 | 12/09/2021 6:07 AM | 15/09/2021 6:11:48 AM |
| 15/09/2021 6:12:15 AM | 75 | 01/09/2021 6:11 AM | 13/09/2021 6:11 AM |
| 15/09/2021 6:14:00 AM | 75 | 01/09/2021 6:11 AM | 15/09/2021 6:11:48 AM |
| 15/09/2021 6:17:10 AM | 75 | 10/09/2021 6:16 AM | 15/09/2021 6:16:21 AM |
| 15/09/2021 6:17 :15 AM | 75 | 10/09/2021 6:16 AM | 15/09/2021 6:16:21 AM |
This is my current formula which gives me the correct result at Start date level in the report. But when I view the result in ID level this is not giving me the correct result.
Solved! Go to Solution.