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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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