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
Grimfandango227
Frequent Visitor

Only show Y-Axis if Splicer selection activated

Hello, 

 

I am wondering if there is a way to only show a Y-Axis line on a line and stacked column chart if a Slicer filter is activated. Screenshots below ↓↓

 

1. Is the chart when nothing in my slicer is selected (This is where I would like the Y-axis line to not appear)

Grimfandango227_0-1713902715001.png

2. Chart when Bin is selected on slicer (where I would like the Y-axis to then show up)

Grimfandango227_1-1713902773795.png

Any help would be greatly appreciated. 

 

Thanks!

 

Jeremy B. 

1 REPLY 1
qqqqqwwwweeerrr
Super User
Super User

Hi @Grimfandango227 

 

this can be created by using two measure 

1. Create the measure for column using for line chart here is my example:

sum_gross_sales = SUM(financials[Gross Sales]) i am using this in y line chart
2. 
Amount Filtered =
 
IF ( ISFILTERED(financials[Product]), [sum_gross_sales],BLANK() ) use this in you line and stack bar chart
 here product is in your case is bin code
here is my outout: Nothing is selected line does not populate 
qqqqqwwwweeerrr_0-1713971589754.png

now if i select any thing from product: it works for single and multiple select

qqqqqwwwweeerrr_1-1713971645845.png

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: https://www.youtube.com/@letssolveproblem

Regards

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors