Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Kind of surprised this wasn't already out there but here is a converter for a duration in decimal form to something else. You might end up with a decimal duration when doing math on two date/time columns like:
([Date1] - [Date2]) * 1.
Conversion Measure =
VAR __Value = SUM([Decimal Days])
VAR __Days = TRUNC(__Value)
VAR __Hours = TRUNC ( (__Value - __Days) * 24 )
VAR __Minutes = TRUNC ( (__Value - __Days - __Hours / 24) * 24*60 )
VAR __Seconds = TRUNC ( (__Value - __Days - __Hours / 24 - __Minutes/24/60) * 24*60*60 )
RETURN
__Days&":"&__Hours&":"&__Minutes&":"&__Seconds
eyJrIjoiZGRlZmJlMTctNjA1Mi00NWM2LWE1MjUtY2ZmYTIwZTkyMzVkIiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9
Thank you. This is great.