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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Line graph representing hours on Y-axis

Hello 🙂

 

I have a data set that represents an end time of a process that runs everyday : 

 

20/05/2021 10:13

21/05/2021 10:14

22/05/2021 10:12

23/05/2021 10:12

etc.

 

I would like to represent the evolution of the end time throughout the month meaning I have to represent an date/hour type on the Y-axis. I have tried several things but it never works. 

 

Do you have any tips to represent this ?

 

Thanks, 

 

Caroline

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @Anonymous ,

I created the data:

v-yangliu-msft_0-1622450923859.png

Here are the steps you can follow:

1. Create a calculated column.

Date value = LEFT([date],10)

2. Create measure.

Measure 2 =
HOUR(MAX('Table'[date]))+MINUTE(MAX('Table'[date]))/100

3. Open the line chart and place [date value] in axis and [meausre] in values

4. Result:

v-yangliu-msft_1-1622450923867.png

 

 

Best Regards,

Liu Yang

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

5 REPLIES 5
Anonymous
Not applicable

Hello ! 

I am coming back on this topic to share with you an upgrade solution for this issue, maybe it can help somebody ! 

 

To represent an hour on a Y-Axis you can use @Anonymous solution where your time will be represented as a number by adding the minutes, divided by a hundred, to the hours. It means that 10:15 will be 10,15. But to have a more precise graph you can create a custom tooltip on which you will put your data in an hour format. So instead of displaying 10,15 it will display your time with the correct format.

 

Caroline

Anonymous
Not applicable

Hi  @Anonymous ,

I created the data:

v-yangliu-msft_0-1622450923859.png

Here are the steps you can follow:

1. Create a calculated column.

Date value = LEFT([date],10)

2. Create measure.

Measure 2 =
HOUR(MAX('Table'[date]))+MINUTE(MAX('Table'[date]))/100

3. Open the line chart and place [date value] in axis and [meausre] in values

4. Result:

v-yangliu-msft_1-1622450923867.png

 

 

Best Regards,

Liu Yang

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

DE acuerdo con la conversión, pero como muestro en las etiquetas de valores las horas originales?

Anonymous
Not applicable

Thank you it worked perfectly ! 

lbendlin
Super User
Super User

Add transforms that separate out the date and time parts of your values - either using the built in functions or by doing integer/fraction math (dates are integers, times are fractions).

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors