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
Lexola
Regular Visitor

Unable to create an X-Axis Constant Line for a Time x-axis

I have a timeseries line chart (see below), where the x-axis is Time datatype. 

Lexola_0-1673294273043.png

The constant line feature does not allow for a time to be selected. When I try to add a conditional entry for the opening hour (08:00) the graph does not respond as expected (see below) and introduces dates onto the x-axis.

Lexola_1-1673294476225.png

Thanks,

Lex

4 REPLIES 4
GilbertQ
Super User
Super User

Hi @Lexola 

 

Yes this should work as long as you have data for the time.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Unfortunately, this doesn't work. I am also not able to set x-axis limits to show midnight to midnight for a day ( to keep the visual's x-axis the same when you change date filter.

 

Regards,

Lex

Lexola
Regular Visitor

Hi @GilbertQ,

 

Time is on the x-axis in my example (not a datetime). I do have data for many days though. So this should work whether I filter on just 1 day or on all days (and average across them).

GilbertQ
Super User
Super User

Hi @Lexola 

 

It could be because you have got the date/time and you only have data from a specific point in time?

 

What happens if you just put in the time on the X-axis and then filter it to be greater than 8AM does it then work?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

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.