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
sv98917n
Helper I
Helper I

Have Date Slicer Show Only Certain Dates

Hello Everyone,

 

I currently have a dataset that is only based on Sundays. I have a date slicer, but it adds its own dates into it. 

For example: 3/8/20 is a Sunday, but it lets me slice to 3/9/20 even though my data is only Sundays. I would like the next slice to bring me to 3/15/20 then 3/22/20 and so on. 

dr1.JPGdr2.JPG

However, when I do slice to 3/9/20, its kind of treated as a 3/15/20. 

 

I know you can press the date and select via a calendar, but this would be very helpful if there is a solution.

 

Thanks! 

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

Hi  @sv98917n ,

 

Create a measure as below:

Measure = IF(WEEKDAY(MAX('Table'[Date]),2)=7,1,0)

Then put the measure in the filter of the slicer ,select " is 1"and apply it.

And you will see:

Screenshot 2020-09-23 154404.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

View solution in original post

4 REPLIES 4
v-kelly-msft
Community Support
Community Support

Hi  @sv98917n ,

 

Create a measure as below:

Measure = IF(WEEKDAY(MAX('Table'[Date]),2)=7,1,0)

Then put the measure in the filter of the slicer ,select " is 1"and apply it.

And you will see:

Screenshot 2020-09-23 154404.png

For the related .pbix file,pls see attached.

 

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
negi007
Community Champion
Community Champion

@sv98917n use list or drop down as a silcer that will show only relevant values.




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

amitchandak
Super User
Super User

@sv98917n , You can create that return 1 for the dates you wanted and use that as a visual level filter.

 

Anonymous
Not applicable

If you use between slicer option it will automatically add those dates. Avoid using this if you want to have specific dates.

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.