Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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:
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):
Is there a way to make the line appear even if there is no data present in the bar chart data?
Solved! Go to Solution.
Hi @Jeffrey2 ,
I'm using the column chart, but I also see it available in the line and column stacked chart.
You just need to click on the + Add Line
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @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:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsI'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.
You just need to click on the + Add Line
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThank you for the help. I've never used that button!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
60 | |
36 | |
33 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |