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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
nurulizzaty
Helper I
Helper I

How to add vertical line in a line & stacked column chart?

Hello experts!

nurulizzaty_0-1690273324115.png

Currently i have the column stacked bar with a green line.. I want to add the red line which is vertical line in the visual.. Is that possible?

 

Your help is much appreciated.

Thanks.

Regards,

Izzaty

 

3 REPLIES 3
foodd
Super User
Super User

EDITED and UPDATED  for a change of Chart type from Stacked column chart to Line and stacked column chart.

 

This is referred to as a Constant Line (or reference line) and is accessible via the Analytics Pane when the Visual is Selected.

 

Both the Line Chart Visual and Stacked Column Chart Visual fully support X and Y Axis Constant Lines and found in the Analytics Pane when the chart visual is selected.  The Line and Stacked Column Chart Visual supports X Axis Constant Lines as a feature of the Analytics Pane. However, you can add a Y-Axis Constant line by first creating a measure, and adding it to the Line y-axis as a source.  Formatting is handled in Visualizations|Format visual|Viaual|LinesColors.  Some visuals have varying levels of support for either or all constant lines when coded into the visual features. When a feature is not fully supported, and you apply a workaround, unplanned results may occur in the rendered visual, however, this technique is known and aged. It is up to the reader to decide when this is appropriate. This advice is an example and for demonstration purposes only. There is no guarantee that this demonstration applies to your use case. The image below of a Line and stacked column Chart demonstrates this technique. 

 

 

foodd_0-1690397100186.png

 

 

 

Use the Analytics pane in Power BI Desktop - Power BI | Microsoft Learn

 

Re: How to Add an vertical line on the Line chart? - Microsoft Fabric Community

 

Power BI - Dynamic Reference Line on X-Axis - YouTube

Hi @foodd. I'm unable to see the same setting as yours.. This is my view

nurulizzaty_0-1690339867905.png

 

You're using the line & stacked column chart right?

nurulizzaty_1-1690339949661.png

 

 

See updated reply.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.