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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Vamshi2020
Helper II
Helper II

Slicer Dynamism based on Dim Date Slicer

Hi Everyone ,

 

Hope all are well. I have a Provider Table which contain Provider id, Effective Date and Termination Date columns . I also have Date Dimension Table which doesnt have any relation with the Provider Table. 

 

In Reporting area , i have Dim Date Slicer(from Date Dimension table) and Provider id slicer . My requirement is when i select any date range in Dim Date slicer , i should see only the provider id's in Provider Id Slicer whose Effective and Termination Dates fall in selected Time frame in Dim Date slicer. 

 

Please help me to achieve this .

 

TIA

1 ACCEPTED SOLUTION
v-deddai1-msft
Community Support
Community Support

Hi @Vamshi2020 ,

 

You can create a visual level filter for Provider Id Slicer:

 

Measure = var a = MAX(Provider[Effective Date]) var b = MAX(Provider[Termination Date]) return IF(MIN('Dim Date'[Date])<=a&&MAX('Dim Date'[Date])>=b,1,0)

 

And set it to 1:

 

Capture.PNG

 

For more details ,please refer to sample pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EScQwbIyUEZMjtxRei...

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

View solution in original post

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @Vamshi2020 ,

 

You can create a visual level filter for Provider Id Slicer:

 

Measure = var a = MAX(Provider[Effective Date]) var b = MAX(Provider[Termination Date]) return IF(MIN('Dim Date'[Date])<=a&&MAX('Dim Date'[Date])>=b,1,0)

 

And set it to 1:

 

Capture.PNG

 

For more details ,please refer to sample pbix: https://qiuyunus-my.sharepoint.com/:u:/g/personal/pbipro_qiuyunus_onmicrosoft_com/EScQwbIyUEZMjtxRei...

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Best Regards,

Dedmon Dai

 

amitchandak
Super User
Super User

@Vamshi2020 , Create a measure and use that in visual level silcer and check for non blank and check

 

Measure =
var _max = maxx(allselected('Date'), 'Date'[Date])
var _min = minx(allselected('Date'), 'Date'[Date])
return
calculate(countrows(Table), filter(Table, Table[Termination Date] >=_min && Table[Termination Date] <=_max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak ,

 

I was not able to understand the suggested measure . Just want to mention my requirement again .

if i select any time frame in Dim Date slicer, i should lee list of Provider Id's in Provider Id Slicer only those who are eligible in selected time frame (based on Provider Effective and termination dates)

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.