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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Ramadhianto
Frequent Visitor

Show minutes as duration/time

Hi All,

 

I have an issue in which i have a column containing minutes value originally representing duration stores as whole number (i.e. 3312 minutes, 1200 minutes, etc)

 

1. i need to divide these by number of user to have average duration per user (i.e. 3312 minutes divided by 10 user equal 331.2 minutes) : done using DAX

2. i need to show these in line chart

 

step 2 is where im stopped at. In Excel (also using powerquery for compiling), i simply create a calculated field of [Minutes] divided by 1440 (which will convert these to minutes in decimal where 1 = 24:00:00 as used in excel) an put it in the chart. After formatting the calculated field as [h]:mm it will show properly (example : 331.2 minutes divided by 1440 equals 0.23, in which if formatted as [h]:mm will show properly as 5:31)

 

how can i do this in PowerBI? i tried to convert it to duration in powerQuery (and it showed up properly as duration in query preview), but somehow get recognized as text when in powerBI. as this far, i only end up having these as decimal (but cannot convert it to duration/time display)

 

there is a method which involved converting using FORMAT([Duration], "h:mm") but then it will throw error when used in line chart

 

currently im at these :

1.png

and these are the output im looking for (from excel pivot). 

2.png

Thank you

 

Rgds,

 

D

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@Ramadhianto,

Power Query has duration data type, but Power BI Reports don't have the duration data type, regarding to this issue, please vote up this idea. Thus we are not able to display the Duration on the Y-Axis in HH : MM format, however, we can use R visual as a workaround.

For more details, please review the similar thread below.
https://community.powerbi.com/t5/Desktop/Show-measure-HH-MM-SS-in-y-axis/m-p/241155

Regards,
Lydia

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

@Ramadhianto,

Power Query has duration data type, but Power BI Reports don't have the duration data type, regarding to this issue, please vote up this idea. Thus we are not able to display the Duration on the Y-Axis in HH : MM format, however, we can use R visual as a workaround.

For more details, please review the similar thread below.
https://community.powerbi.com/t5/Desktop/Show-measure-HH-MM-SS-in-y-axis/m-p/241155

Regards,
Lydia

Voted that idea too.. guess need to do it in R visual then 😄

Thank you

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors