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
Anonymous
Not applicable

Change to mm:ss format

TikkiMasala_0-1665931518906.png

I have connected to excel data source in format of mm:ss which shows up as the following in power bi but want to show it as mm:ss and want to show that value in a card and in a chart and plot against month

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Refer the below sample (adjust from second to dd.hh:mm:ss,adjust it according your need,you could adjust your time  to second,through *60 to get it):

Measure = 
VAR ss =
    SUM ( 'test'[seconds] )
VAR mm =
     ( ss - MOD ( ss, 60 ) ) / 60
VAR hh =
     ( mm - MOD ( mm, 60 ) ) / 60
VAR mmm =
    mm - MOD ( mm, 60 )
VAR res = ss - hh * 3600
VAR rem =
     ( res - MOD ( res, 60 ) ) / 60
VAR ress = ss - rem * 60 - hh * 3600
RETURN
    hh & ":" & rem & ":" & ress

vluwangmsft_0-1666148059378.png

 

 

Best Regards

Lucien

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

Hi @Anonymous ,

Refer the below sample (adjust from second to dd.hh:mm:ss,adjust it according your need,you could adjust your time  to second,through *60 to get it):

Measure = 
VAR ss =
    SUM ( 'test'[seconds] )
VAR mm =
     ( ss - MOD ( ss, 60 ) ) / 60
VAR hh =
     ( mm - MOD ( mm, 60 ) ) / 60
VAR mmm =
    mm - MOD ( mm, 60 )
VAR res = ss - hh * 3600
VAR rem =
     ( res - MOD ( res, 60 ) ) / 60
VAR ress = ss - rem * 60 - hh * 3600
RETURN
    hh & ":" & rem & ":" & ress

vluwangmsft_0-1666148059378.png

 

 

Best Regards

Lucien

Shaurya
Memorable Member
Memorable Member

Hi @Anonymous,

 

Let me know if I'm interpreting this correctly. You want to round the values to two decimal places like 1.02 and show it. You can do that easily in DAX by setting the number of places after decimal.

 

Or do you want to show these values as 01 mm : 02 ss ?

 

The later can be achieved by splitting the numbers and using CONCATENATE to add mm and ss.

 

Did I answer your question? Mark this post as a solution if I did!
Consider taking a look at my blog: Forecast Period - Previous Forecasts

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.