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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Time on line chart

Hello, would it be possible to display the following line chart with the time in mm:ss instead of seconds? Thank you.

 

FriedWater_0-1650217389062.png

 

1 ACCEPTED SOLUTION
SpartaBI
Community Champion
Community Champion

@Anonymous 
Yes, through conditional format strings in calculations groups.
Create a calculation item with this formula in the format string expression:

"""" & FORMAT(SELECTEDMEASURE()/86400, "nn:ss")

Make sure to only use this item on the measures where you want to use it, wither by putting it in the visual level filter or by adding and if condition to the formula above to work only on the measure you want.

Hope that helps

View solution in original post

1 REPLY 1
SpartaBI
Community Champion
Community Champion

@Anonymous 
Yes, through conditional format strings in calculations groups.
Create a calculation item with this formula in the format string expression:

"""" & FORMAT(SELECTEDMEASURE()/86400, "nn:ss")

Make sure to only use this item on the measures where you want to use it, wither by putting it in the visual level filter or by adding and if condition to the formula above to work only on the measure you want.

Hope that helps

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.