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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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.

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

October NL Carousel

Fabric Community Update - October 2024

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