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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.

Top Solution Authors
Top Kudoed Authors