Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Fabric Community site will be in read-only mode on Monday, Feb 24 from 12:01 AM to 8 AM PST for scheduled upgrades.

Reply
Alfred05
New Member

DIVIDE TIME BY TIME

Hey there,

 

 

I have a measure thar adds up the time by user, as the image below...I would like to find a way to divide that time by 40 hours, and get the result as a number i.e. 2:40:00/40:00:00 = 2.66/40=0.0665

2.66 is the number for 2h 40min

 

aaaad.PNG

 

thanks in advance!

1 ACCEPTED SOLUTION
AllisonKennedy
Super User
Super User

What measure are you using for SUM_Cycle_Time? You need to convert the original time into a decimal first, so basically take the minute component and divide by 60 + hours

Then you can do a simple divide by 40.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User
AllisonKennedy
Super User
Super User

What measure are you using for SUM_Cycle_Time? You need to convert the original time into a decimal first, so basically take the minute component and divide by 60 + hours

Then you can do a simple divide by 40.

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.