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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Jeffrey2
Helper I
Helper I

Line y-axis unable to display dynamic constant measure

My goal is to see how each group performs compared to a specific standard. I am trying to display a constant line in the Line y-axis of a chart. If I put an actual number in the measure (e.g. Metric = 5), I can produce a constant line across all dates:

Jeffrey2_0-1750938320461.png

 

However, I want to make the Line y-axis dynamic. For example, if I choose group 1 in a slicer, the metric would be 5, but if I choose group 2, the metric would be 3. When I attempt this, the visual produces the line y-axis bar ONLY if bars appear (data in the Column y-axis):

Jeffrey2_1-1750939527086.png

 

Is there a way to make the line appear even if there is no data present in the bar chart data?

1 ACCEPTED SOLUTION

Hi @Jeffrey2 ,

 

I'm using the column chart, but I also see it available in the line and column stacked chart.

MFelix_0-1750959133490.png

 

You just need to click on the + Add Line


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @Jeffrey2 ,

 

How are you adding the Constant line are you using a Column and line chart?

i don't know what is the calculation you want to achieve but I have added a simple measure that is the average of  the values.

 

Then I added this measure yo the reference line and the result is below:

MFelix_0-1750943551284.pngMFelix_1-1750943561500.png

 

MFelix_2-1750943570054.png

 

 


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



I'm using the Line and Stacked column chart. With that visual I do not see a "reference line" option. What visual are you using?

Hi @Jeffrey2 ,

 

I'm using the column chart, but I also see it available in the line and column stacked chart.

MFelix_0-1750959133490.png

 

You just need to click on the + Add Line


Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Thank you for the help. I've never used that button!

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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