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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to create a sliding slicer of months for dates

I would like my report to have a slicer that allows for a Start Month and End Month to be selected on a slider. I don't want the slicer to be at date level, but at Year-Month level. How can this be done?

8 REPLIES 8
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

You can try to use 'Timeline' custom visual to meet your requriement, set the filter level as month:

slicer.png

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Thanks @v-yingjl. I had already found the timeline visual, but found it too bulky and cumbersome for my needs.  For example, it takes up a large amount of the screen in height. And I don't want the users to have to scroll off to the right to find the end date - I want the slider to fit within the width I set, and have all the month values available to be "slid" to.

Hi @Anonymous ,

As far as I know, if you want to set the width for the slicer when using sliders at the same time, I'm afraid currently power bi could not have a suitable visual to meet your requirement.

 

Perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner: https://ideas.powerbi.com/forums/265200-power-bi-ideas


It is a place for customers provide feedback about Microsoft Office products . What’s more, if a feedback is high voted there by other customers, it will be promising that Microsoft Product Team will take it into consideration when designing the next version in the future.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hi @Anonymous , you can do this in either of the following ways:
1. Use the auto date/time hierarchy present in Power BI: Where you expand the levels of date field and select Year. month from available options.

2. Create a calculated column as below: A more recommended approach, as you can specify the format of month/year as per your needs. You can sort the column by Month number.

Year-Month =
VAR _year = FORMAT([Date], "yyyy")
VAR _month = FORMAT([Date], "mmmm")
RETURN
_year &"-"&_month
 
Month number = FORMAT([Date], "mm")

 

 

Did I solve your problem?

If yes, please mark my solutions as Accepted! A kudos will be apprecited too! 🙂

amitchandak
Super User
Super User

@Anonymous , Create a month year column and use that

Month Year = FORMAT([Date],"mmm-yyyy")
Month Year sort = FORMAT([Date],"yyyymm")

 

Sort month year on MOnth year sort

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

When I add a column that contains YYYY-mmmm to the slicer, there is no option to make the slider visible. See the options below

EylesIT_0-1605742102151.png

 

mahoneypat
Microsoft Employee
Microsoft Employee

You can have a numeric month column with MONTH('Date'[Date]) and use that in your slicer.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

No, the report users need to see the slider start and end dates to display as "Nov 2019" 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors