Forum Discussion

davidz106's avatar
davidz106
Icon for Helper III rankHelper III
2 years ago

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.

 

 

Is this possible to do in powerBI?

1 Reply

  • lucadelicio's avatar
    lucadelicio
    Icon for Impactful Individual rankImpactful Individual

    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.

     



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