cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
MrGlenn
Helper I
Helper I

DimDate Slicer - Show Min & Max Date Of A Related Table

Hello,
When using a DimDate table in a slicer, I get the entire range of the dates of the DimDate Table.
Is there a way to make a dynamic filter on the dates of the slicer?
I've created measures to get the dynamic min and max date vaules, how can I add these to the slicer filter?

1 ACCEPTED SOLUTION
MrGlenn
Helper I
Helper I

To get this to work, I made a new table through query by

  1. apending the 2 tables,
  2. remove all the columns other than the date column,
  3. remove duplicate dates.
  4. link the relationships of the original 2 tables to this new date table.

From here I use this new table as the date references in the slicer.

View solution in original post

3 REPLIES 3
MrGlenn
Helper I
Helper I

To get this to work, I made a new table through query by

  1. apending the 2 tables,
  2. remove all the columns other than the date column,
  3. remove duplicate dates.
  4. link the relationships of the original 2 tables to this new date table.

From here I use this new table as the date references in the slicer.

v-easonf-msft
Community Support
Community Support

Hi, @MrGlenn 

Try to add a calendar table and create a slicer based on that table.

Then you need to add a measure like below and apply it to visual filter pane.

filter = IF(SELECTEDVALUE('Calendar Table'[Date])>[mindate]&&SELECTEDVALUE('Calendar Table'[Date])<[maxdate],1,0)

veasonfmsft_0-1661307433155.png

Best Regards,
Community Support Team _ Eason

ribisht17
Super User
Super User

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors