cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

TimeChart in PowerBI? Is it possible?

I have created a chart like the following in Excel.  I would like to publish this type of data to a PowerBI Dashboard and then allow personnel in my company to see the data through that Dashboard.  I can't figure out how to get this chart to work in PowerBI.  I've seen other posts that talk about it too...but wanted to provide my context to see if someone can give me an idea how to do it.  We are attempting to promote PowerBI in our company and this would help.  Thanks.

 

GOAL:  Publish Batch Times from a system in a chart in PowerBI.

Datasource:  Azure SQL Server

Currently how it works in Excel:  Refresh the query against Azure SQL Server Table, Then the chart updates.

 

TimeChartInPowerBI.png

 

Raw Data if it helps.

Datetime
Format m/dd h:mm
Datetime
Format hh:mm:ss
DateTime
Format hh:mm:ss
DatetimeBatch Run TimeTarget
11/05 8:0000:02:3400:02:00
11/05 8:0400:01:3400:02:00
11/05 8:0600:01:4600:02:00
11/05 8:0900:02:5300:02:00
1 ACCEPTED SOLUTION
New Member

Here's what I ended up doing.

 

I changed the time calculation to a decimal.  So 90 seconds becomes 1.5 minutes.  220 seconds becomes 3.67 s, etc.

 

Then I plotted the "minutes" as a decimal on the Y-axis.  This worked.  The value to it as well was that for multiple charts on the same report, I could control the y-axis more easily by just setting the lower and upper bounds by number. 

 

Thanks for your help!

View solution in original post

4 REPLIES 4
New Member

Here's what I ended up doing.

 

I changed the time calculation to a decimal.  So 90 seconds becomes 1.5 minutes.  220 seconds becomes 3.67 s, etc.

 

Then I plotted the "minutes" as a decimal on the Y-axis.  This worked.  The value to it as well was that for multiple charts on the same report, I could control the y-axis more easily by just setting the lower and upper bounds by number. 

 

Thanks for your help!

View solution in original post

Community Support
Community Support

Hi @thomascampbell ,

 

v-lionel-msft_0-1604903539925.png

The'Line chart' can not plot time type data.

You need use a custom visual.

 

Best regards,
Lionel Chen

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

 

Super User IV
Super User IV

@thomascampbell , I doubt That in power bi you may not be able to plot time on y-axis. You may to convert that to duration



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Do you mean that I should make the batch run times...numeric instead of time and plot that somehow?  That would work...but not ideal.  It's easy to do in Excel...why an issue in PowerBI?

Helpful resources

Announcements
secondImage

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

secondImage

Power BI Women

Join our monthly meetings and learning sessions.

secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors