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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.