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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
tester12
Frequent Visitor

Filter for date slicer (date from and till in the same year)

Hi,

 

i have a date slicer and want to ensure that users only can select a period of time within the same year.

So there is the filter "show items where the value is in this year". That's great, but restricts the report period to the current year. What i need is to give users the option to swith to another year and select e.g. a 2023 date priod - 15.02.2023 to 18.06.2023 as long as the period does not affect more than one year. 

 

Is there a way to do this?

 

Thank you very much in advance.

4 REPLIES 4
Anonymous
Not applicable

Hi @tester12 ,

Thanks for @3CloudThomas 's sharing.

Please try to put the year column into the slicer.

vrongtiepmsft_0-1712026230569.png

This will only filter within the same year.

 

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

 

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

 

Best Regards
Community Support Team _ Rongtie

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

 

 

 

 

Hi,

 

With "Year" column in the slicer one can't use the "Between" Slicer Style.  You find only vertical list or dropdown style. So users would have to click manually the days they want to filter, they won't have the option to choose from-date and till-date

 

This is I want to allow:

 

tester12_0-1712825501006.png

 

This is I want to allow:

 

tester12_1-1712825532320.png

 

 

This is I want to allow:

 

tester12_2-1712825594457.png

 

 

This is what i DON't want to allow:

 

tester12_3-1712825643469.png

 

 

tester12
Frequent Visitor

But this won't avoid users to select time periods that extents one calender year?

When i restrict the year to 2022, 2023, 2024, users can select 01.05.2022 - 15.03.2024, this is not what i need.

3CloudThomas
Super User
Super User

You can add a page or report level filter and specify the years and Lock the filter so the user can not change.

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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