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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
hnereson
Advocate I
Advocate I

Dynamic Slicer for boolean values which update depending on the date selected

I am trying to add a Boolean slicer on my Power BI report. However, this Boolean value needs to filter different properties depending on the max date selected. I have a Calendar Table and Property List table as my dimension tables. "Same Store" means that a property has been owned for over 2 years.

 

Table below is just for explanation, not an actual table in the data model. Date column correlates with 'Calendar'[Date]. [Property] correlates with 'Property List'[Property].

 

 

DatePropertyAcquisitionAge (yrs)Same Store
1/31/202012/27/20181.93False
2/29/202012/27/20182.01True
3/31/202012/27/20182.09True
1/31/202023/15/20181.88False
2/29/202023/15/20181.96False
3/31/202023/15/20182.05True

 

I would like a Slicer for "Same Store" properties, so I could select "True" with a selected date of 2/29/2020. Then, the report would filter to only property 1.

 

I've tried calculated columns and measures. Calculated columns aren't dynamic enough to take the date into consideration. Measures require aggregation. This would be ideal, so I could use a switch measure. Here's one thing I've tried:

 

 

 Same Stores = 
var _maxdate = max('Calendar'[Date])

return 
    IF(
        DATEDIFF('Property List'[Acquisition], _maxdate,YEAR) >= 2, --doesn't work since [Acquisition] isn't aggregated.
        TRUE(), 
        FALSE()
    )

 

I appreciate any insight into this!

 

1 REPLY 1
Syndicate_Admin
Administrator
Administrator

Nice day.

You can try activating in the options and settings part > Options >Characteristics of the preview version and activating the box > Field parameters. With this you will have greater possibilities to filter your slicers from calculated measurements, I hope it can help you.

FrancoQuiroga_0-1663270610927.png

FrancoQuiroga_1-1663270645300.png

Best regards!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors