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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Avichal
Frequent Visitor

Time Duration and Time Graph Plotting

Hello Everyone,

 

I am new to Power BI. Looking for some help. Earlier I use Excel and Power Point to present Weekly Report. Now i have started in Power BI. I use to compare average resolve time weekly. 

 

So First I need duration in hh:mm:ss format which includes more that 24 hour (Example 28:40:32). Second I need to plot bar graph with respect to time.

 

I am attaching screenshot 1 how it use to be appear in Excel. 

 

Problem I am facing if in case I convert duration in HH:MM:SS format then it is in text format so when plotting graph then it take count.

 

Please help. Capture 1.PNG

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Avichal ,

You can try this:

1. Duplicate column of ‘Duration’.

2. Split ‘Duration – Copy’ with ‘:’.

3. Add a custom column.

=[#"Duration - Copy.1"]*3600+[#"Duration - Copy.2"]*60+[#"Duration - Copy.3"]

Time Duration and Time Graph Plotting1.PNG

4. Remove columns.

Time Duration and Time Graph Plotting2.png

5. Create a line chart, put ‘Seconds’ in ‘Values’ and ‘Duration’ in ‘Tooltips’.

Time Duration and Time Graph Plotting.png

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
jmsousatavares
Regular Visitor

Hello,

I have the same problem: anyone can help please?

jmsousatavares
Regular Visitor

I have the same problem: anyone can help ?

Icey
Community Support
Community Support

Hi @Avichal ,

You can try this:

1. Duplicate column of ‘Duration’.

2. Split ‘Duration – Copy’ with ‘:’.

3. Add a custom column.

=[#"Duration - Copy.1"]*3600+[#"Duration - Copy.2"]*60+[#"Duration - Copy.3"]

Time Duration and Time Graph Plotting1.PNG

4. Remove columns.

Time Duration and Time Graph Plotting2.png

5. Create a line chart, put ‘Seconds’ in ‘Values’ and ‘Duration’ in ‘Tooltips’.

Time Duration and Time Graph Plotting.png

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Avichal
Frequent Visitor

Hi Icey,

 

Thank you for your response. It work for me just if you can help me with one more thing :- Is there a way I can show data label with duration value ?

amitchandak
Super User
Super User

Have you tried time on the axis? By dragging it into the axis property of the graph and it still shows count.

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

Hello Amit,

 

Thanks for your help but it doesn't work 😞


@amitchandak wrote:

Have you tried time on the axis? By dragging it into the axis property of the graph and it still shows count.


 

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.