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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Parul
Frequent Visitor

Filtering To date filter using the other From date filter.

I have 2 disconnected date tables and I am creating measures for data between these 2 dates.
If I have one date selected in "From" date slicer I want my "To" date slicer to show dates for next 12 months. (based on From date selection)
However I am unable to achieve the same.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Parul , if the second one is not a range slicer

 

 

Create a measure

measure  =

var _max =maxx(allselected('Date1'), 'Date1'[Date])  //Slicer 1

return

countrows(filter('Date2', 'Date2'[Date]>= _max && 'Date2'[Date] <= eomonth(_max,12)) )

 

use this in visual level filter and check for "is not blank"

 

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Parul , if the second one is not a range slicer

 

 

Create a measure

measure  =

var _max =maxx(allselected('Date1'), 'Date1'[Date])  //Slicer 1

return

countrows(filter('Date2', 'Date2'[Date]>= _max && 'Date2'[Date] <= eomonth(_max,12)) )

 

use this in visual level filter and check for "is not blank"

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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