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
prvn
Frequent Visitor

Date slicer set min and max date or set date slicer range based on date column

I have a dimcalendar table with date range from 2018 - 2021. I have a transaction table the has relation to this dim calendat table on date. I have created a date slicer from dimcalendar table. The slicer by default is set to 2018 as start and 2021 as end.

 

Capture.PNG

 

How do i make the this splitter have range from the transaction table.

Note: I don't want to create a date splitter from transaction table. 

 

Cheers,

prvn

1 ACCEPTED SOLUTION
Johanno
Responsive Resident
Responsive Resident

Hi,

 

1. Can't you change the slicer to point to the transaction dates instead?

 

2. Or alternatively use as calendar table:

Dates = CALENDARAUTO(12)

to avoid having the Dimcalendar table go so far.

 

3. Another workaround could be creating a new date column in the Dimcalendar which exludes dates that's in the future from the transaction table:

Dates without future = IF(Dates[Date]<MAX(Table1[Date]);Dates[Date])

and then point the slicer to this column instead.

 

Capture.JPG

 

 

/Johan

 

 

View solution in original post

1 REPLY 1
Johanno
Responsive Resident
Responsive Resident

Hi,

 

1. Can't you change the slicer to point to the transaction dates instead?

 

2. Or alternatively use as calendar table:

Dates = CALENDARAUTO(12)

to avoid having the Dimcalendar table go so far.

 

3. Another workaround could be creating a new date column in the Dimcalendar which exludes dates that's in the future from the transaction table:

Dates without future = IF(Dates[Date]<MAX(Table1[Date]);Dates[Date])

and then point the slicer to this column instead.

 

Capture.JPG

 

 

/Johan

 

 

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.