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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
WIILLLZ
New Member

Duration variable on Y-Axis

image001.png

image002.png

 

Hello, 

 

I’m trying to figure out a formula to change my “Duration” variable which is set as a time variable to something numeric that is still readable as hours/minutes to represent on a Column chart on the Y-axis. I believe Power BI can’t do this because the time variable is text when placed into a visualisation. I first formatted my variable to what you see in the “Duration” column, but every formula/ measure I’ve tried has failed.

I’ve attached two screenshots. In the column chart I want my duration variable to reflect the actual time not just as a count.

Thanks for any help, much appreciated 🙏🏼

1 REPLY 1
BeaBF
Super User
Super User

@WIILLLZ  Hi! 

Assuming your "Duration" variable is currently in a time format (HH:mm), you can create a new numeric column or measure using the following formula:

Numeric Duration = HOUR('YourTable'[Duration]) + MINUTE('YourTable'[Duration]) / 60
 

BBF

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.