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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
tester12
Regular 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
v-rongtiep-msft
Community Support
Community Support

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
Regular 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
July 2024 Power BI Update

Power BI Monthly Update - July 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors