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 add StartMonth and EndMonth slicers to a report?

I am re-writing an SSRS report in Power BI. The SSRS report has two parameters, StartMonth and EndMonth. Ther report displays data between those two months. The paramters are formatted as Mmm-yyyy. How do I achieve the same thing in Power BI? I can create two slicers, each using the dimDate.DateMonthYear field. But as soon as I select one month in the StartDate slicer, the EndDate slicer changes to display only the same month.

Any ideas?

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

You may try to put the date column into Filters and set the start date and end of it.

13.png

 

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

danextian
Super User
Super User

Hi @Anonymous ,

As @Anonymous has suggested, you may use the between dates of the slicer. Otherwise, you'll have to create two separate and disconnected tables (no relationship to the fact table).  Create calculated tables using this formula

StartDate = 
VAR __START_DATE =
    DATE ( 2019, 1, 1 ) 
VAR __MONTHS =
    GENERATESERIES ( 0, 36, 1 )
RETURN
    ADDCOLUMNS (
        SELECTCOLUMNS ( __MONTHS, "Date", EOMONTH ( __START_DATE, [Value] ) ),
        "Month and Year", FORMAT ( [Date], "mmm-yy" )
    )


EndDate= 
VAR __START_DATE =
    DATE ( 2019, 1, 1 ) 
VAR __MONTHS =
    GENERATESERIES ( 0, 36, 1 )
RETURN
    ADDCOLUMNS (
        SELECTCOLUMNS ( __MONTHS, "Date", EOMONTH ( __START_DATE, [Value] ) ),
        "Month and Year", FORMAT ( [Date], "mmm-yy" )
    )



And to aggregate a value based on the selected start and end months from the two separate tables.

MyMeasure =
CALCULATE (
    SUM ( Fact[Column] ),
    DATESBETWEEN ( Fact[Date], MIN ( StartDate[Date] ), MIN ( EndDate[Date] ) )
)
//using MIN or MAX for the end and start dates doesn't matter as there is only one date per month in the disconnected tables




Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
Anonymous
Not applicable

Is it possible to combine both start month and end month field into one column, like a date column? If it's possible, then you can just use a date slicer as shown below by using the between option. This way you can choose both the start and end date.

help.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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