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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
MCacc
Helper IV
Helper IV

Line y axis independent from slicer

Hello, 

 

I have a calculated column with a fixed number (95%), and I need to use this number in a Line-y Axis of a combo chart.

The dimension in my combo chart x-axis is Month

 

I also have a slicer Month, same field of my combo chart x-axis.

 

The field Month (used both in the combo chart and in the slicer) comes from my Calender table in relationship with my fact table.

 

The data generates three columns, one for each month that exisist. I want my line-y to not react to the month slicer, but I want it to be a straight line completely indipendent from my slicer choice.

 

I tried this measure:

My line-y axis := CALCULATE(MAX(Fact Table[Fixed Value]), ALL(Calendar[Month]))

 

However, when I select a month from my  slicer a dot comes out corresponding to my selection.

 

How can I avoid this beahviour?

 

Thank you very much for your support

2 REPLIES 2
amitchandak
Super User
Super User

@MCacc , Try like

 

My line-y axis := CALCULATE(MAX(Fact Table[Fixed Value]),all())

 

or use the measure in Y-axis constant line (fx) in Analytics Pane

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you for your response but a) the measure returns an error saying ALL function needs at least one argument, and b) I can't use analytics pane because it's not supported for the combo chart. 

 

But thank you for the tips.

 

Any other ideas?

 

Thank you! 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.