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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jmsousatavares
Regular Visitor

line graph with hh:mm:ss variable in the value

Hello,

 

how can I create a line graph with this variable?

jmsousatavares_2-1636406156451.png

 

 

when I push the variable TMP to the value of the line graph, a count occurs and only show an integer and not the average or the absolute value of the variable (in hh:mm:ss format)

 

 

jmsousatavares_0-1636406131304.png

jmsousatavares_1-1636406138168.png

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Bar charts and line charts do not support fields in time format as values.

You need to convert time into seconds or minutes. You can refer to the these:

DAX:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92 

Power Query:

https://community.powerbi.com/t5/Desktop/Convert-HH-MM-SS-to-seconds/td-p/1185671 

 

View solution in original post

7 REPLIES 7
V-lianl-msft
Community Support
Community Support

Bar charts and line charts do not support fields in time format as values.

You need to convert time into seconds or minutes. You can refer to the these:

DAX:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Duration-to-Seconds-Converter/m-p/342279#M92 

Power Query:

https://community.powerbi.com/t5/Desktop/Convert-HH-MM-SS-to-seconds/td-p/1185671 

 

VijayP
Super User
Super User

@jmsousatavares 

Please check the Data type of that columns, looks like that column got converted to Text hence it is just showing Count, Change the data type as desired




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Hello,

the type is "time"

jmsousatavares_0-1636462161230.png

 

@jmsousatavares 

Then convert that into text and add that field and see whether you get the work around




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP  it didn't work. 

jmsousatavares_0-1636476562565.png

jmsousatavares_1-1636476591798.png

jmsousatavares_2-1636476616732.png

 

 

AlexisOlson
Super User
Super User

If you click the dropdown on the Values field, does it give you other summarization options?

no, only count or count distinct

jmsousatavares_0-1636410656715.png

 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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