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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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