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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Cmcmahan
Resident Rockstar
Resident Rockstar

Relative Date Filtering Using Current Month

Hi everybody,

 

I'm currently in a situation where I have a date slicer that filters a page of visuals, only showing data from the previous calendar month.  That part works great.  However, now I have a new requirement that I show the same data for "future" months.  That should be easy enough, copying the visual and applying different filters.  

 

However, I cannot for the life of me figure out how to set up a filter or slicer that uses relative date range AND can handle getting this month's (TODAY()'s month) data as well as future data.  I can EITHER choose to filter X amount of relative future months, or get the current month's data, but not both.  

 

Here's a .pbix file that demonstrates what I can do now, as well as my desired result: https://drive.google.com/open?id=1ucCVchrMySMvWWhAIP529bzMaNnLCB0A

I'm ok with accomplishing this either by setting up a matrix that inverts the first slicer selection or a matrix that combines two calendar month relative filters.

Any help in getting to my desired result without having to manually edit filters every month would be appreciated.

 

1 REPLY 1
dax
Community Support
Community Support

Hi Cmcmahan, There is no method to combine relative date filter in “Or ” condition currently, so workaround is that you could create a table like below and use this in slicer

35.png

Measure =
CALCULATE (
    SUM ( Table1[NumberData] ),
    FILTER (
        Table1,
        MONTH ( Table1[Date] ) >= MONTH ( TODAY () )
            && Table1[Date]
                < DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) + SELECTEDVALUE ( Table2[Column1] ) + 1, 1 )
    )
)

36.png

Then you could set filter to “is not blank”

 

Best Regards,

Zoe Zhi

 

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

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.