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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
togsoo1
Frequent Visitor

Filtering dates in Power BI using a single slicer for 2 dates

Based on this: https://www.youtube.com/watch?v=W5n8-5Q7mII

And : https://radacad.com/power-bi-from-and-to-date-filtering-with-one-slicer

 

Hello everyone, how can I achieve functionality without displaying the dates in the visual? Currently, this setup requires both dates to be present in the visual. However, my goal is to apply this to the entire page, featuring various charts.

 

I got this : 

 

togsoo1_0-1690878882127.png

I want this : 

togsoo1_1-1690878922102.png

My measure "InDateRange" to filter Dates on the 2 tables : 

 

InDateRange = 
VAR _rangeStart = FIRSTDATE('DatesDim'[Date])
VAR _rangeEnd = LASTDATE('DatesDim'[Date])
VAR _selectedDate1 = SELECTEDVALUE('IW69'[Date 2])
VAR _selectedDate2 = SELECTEDVALUE('IW39Ex'[Date 1])

RETURN
IF(
    _selectedDate1 >= _rangeStart
    && _selectedDate1 <= _rangeEnd
    && _selectedDate2 >= _rangeStart
    && _selectedDate2 <= _rangeEnd
    && _selectedDate1 <> BLANK()
    && _selectedDate2 <> BLANK(),
    1,
    0
)

 

My file : https://drive.google.com/drive/folders/1Z_-FPTkbzgg8pgh5RHJsPrivH-ErsyGE?usp=sharing

 

Thanks

0 REPLIES 0

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.