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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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