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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
davidz106
Helper III
Helper III

Vertical lines on line chart

I want to be able to automatically add vertical lines to my line chart. I have columns in my sql db which define the position of the vertical line on x-axis and columns that define its attributes (like name and name2). The name and name2 should be drawn next to the vertical line. 

 

Example in pictrue attached.

davidz106_0-1710061718574.png

 

 

Is this possible to do in powerBI?

1 REPLY 1
lucadelicio
Super User
Super User

Hi,

you can use X-axis constant line function in the Analytics panel of your oblject if it is present.
Then you can set a value or set a function in wich you can configure a Measure that calculate the value from your column of database.

lucadelicio_1-1710080084508.png

 



If i resolve your problem please mark my answer as a solution to help the others.
Thank you

 



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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