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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Red_prov
Helper I
Helper I

Using HH:MM:SS duration in scatter plot visual

Hello!

 

I am working with waitTimes calculated in seconds. I was able to find a measure in order to convert this seconds format to hh:mm:ss.

 

WaitTimeDuration =
VAR hours =
    ROUNDDOWN ( [WaitTimeSeconds] / 3600, 0 )
VAR minutes =
    ROUNDDOWN ( MOD ( [WaitTimeSeconds], 3600 ) / 60, 0 )
VAR seconds =
    INT ( MOD ( [WaitTimeSeconds], 60 ) )
VAR milliseconds =
    round(MOD ( [WaitTimeSeconds], 1 ) * 100,0)
RETURN
    FORMAT(hours,"00") & ":"
        & FORMAT(minutes, "00")
        & ":"
        & FORMAT(seconds, "00")
        & "."
        & FORMAT(milliseconds, "00")
 
 
However i am not able to use this for a Y axis on a scatter plot. I am able to do a minute conversin using ROUNDDOWN which is able to use for my Y axis. 
WaitTimeMinutes = ROUNDDOWN ( MOD ( [WaitTimeSeconds], 3600 ) / 60, 0 )
 
I've read that its a limitation due to duration not being a data type, but was unsure if there was some workaround with another measure option to allow this to be used in my Y axis when i have dateTimes as my X axis.
 
Thanks!
3 REPLIES 3
amitchandak
Super User
Super User

@Red_prov , one of the axis can be time. But if you want that as measure then it need to in minutes/seconds etc

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

 

i've found quite a few other posts mentioning you can use DAX to create the format like i mentioned above. but no way to use in visuals due to the lack of data type. So im limited to having the duration format in a table view, but can only use seconds when using it on an Axis in a visual. 

Thanks,

 

Just for clarification. Using hh:mm:ss / or / mm:ss format in that way is not possible.

 

If i wanted to use time on the Y axis it would have to be in seconds or convert the seconds to minutes?

 

Thanks again

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.