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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
nerdyplayer
Helper I
Helper I

add button for more recent dates for slicer

Trying to make a slicer by using a new measure where it defaults to showing the last 6 months of data, and then give selection for the all the dates.

 

IE
select all

[x]last 6 months

[] 2023
[] 2022

[]2021

 

ty

4 REPLIES 4
Nayan_surya
Helper I
Helper I

Hi @nerdyplayer ,

 

Believe this is the most common request and native Power BI date Slicer does not have it built in. What I ended up doing is getting a custom visual called Date Picker by Powerviz. It has all these presets built in to the system with no need to use Dax or anything.

 

Nayan_surya_0-1702627460501.png

I think you should check them out.

Here is a link if you want to check this visual - https://appsource.microsoft.com/en-us/product/powerbivisuals/truvizinc1674781244292.date-picker-by-p...  (I believe they offer a free version too)

ChiragGarg2512
Solution Sage
Solution Sage

@nerdyplayer , That could work or there can be a column that works like if year is 2023 and month is greater than or equal to month(today() -6) return "last 6 months" and else returns year number in text format.

ChiragGarg2512
Solution Sage
Solution Sage

@nerdyplayer , slicer cannot be made using a measure. 

okay, if i were to make a table, would i make a new column for like today()-180, and use that as a sort function on the slicer?

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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