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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.