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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Ben81
Helper I
Helper I

Filter Slicer by another slicer value

Hi all, 

Hoping this is a simple one as it feels like it should be but I just can't seem to get it working. 

I have a slicer called 'Future Year' that has a year field, I have second slicer called "Historic Year" that uses the same year field. 

What I want is when you select a year on the "Future Year" then the "Historic Year" slicer only shows years before the selected year in the "Future Year"...if that makes sense 🙂

 

I've tried a few methods but nothing has worked yet.

 

Ben

2 REPLIES 2
amitchandak
Super User
Super User

@Ben81 , Both slicers should be on different tables.

 

Create this measure and use that visual level filter of historical slicer

 

new measure =

var _max = selectedvalue(future[year])

return

countrows(filter(history, history[year] < _max))

 

check this not blank

 

 

same discussed here for months

Month Range Slicer: https://youtu.be/nEt7dT3Tfv4

Okay that makes sense but still doesn't quite work, have I missed a step..

Created a historic table with a list of distinct years. I created a relationship to the main table by years in both directions. 
I created the measure as above.
I created two slicers looking at the two tables and on the historic slicer I added the new measure to the filter pane with 'is not blank' but this just leaves the slicer with no values no matter what I select.

What am I doing wrong?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.