DAX Formula Help

Aliq2014

New Member
Joined
Sep 10, 2014
Messages
46
I need a formula to calculate minutes in powerpivot. For example, if the time is 00:30 (30 min) I would like to display 30 min but if the time is 1:00 (1 hour) I would like it to display 60 mins. Any help is appreciate
Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Hi Aliq,

Can you try this formula below?
Basically, we search the position of ":", multiply what's on its left by 60 and add it to what's on its right (+0 converts both parts into numbers).

Rich (BB code):
=
 ( LEFT ( [times], SEARCH (":", [times] ) - 1) + 0 ) * 60
+ RIGHT ( [times], LEN ( [times] ) - SEARCH (":", [times] )) + 0
 
Upvote 0

Forum statistics

Threads
1,224,145
Messages
6,176,652
Members
452,739
Latest member
SCEducator

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top