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
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
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.

Top Solution Authors
Top Kudoed Authors