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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Ttaylor9870
Helper III
Helper III

Filter that shows Next Month and Next 3 months

Hey Experts, Good Afternoon!

 

I need to create a filter where I can select either next month and then next 3 months, for example...

 

Todays date is 21/09/2023 to next month should show Octobers data, Next 3 months should show October, November, December.

 

See example table below...

 

NameDate
AA21/10/2023
BB21/11/2023
CC21/12/2023
DD25/11/2023

 

Many Thanks,

 

Taylor

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Ttaylor9870,

You can create a measure formula to use on 'visual level filter' to compare current row context date and system date to return flag, then you can use this flag as condition to filter correspond records based on current date.

flag =
VAR currDate =
    MAX ( Table[Date] )
VAR _endDate =
    DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) + 3, DAY ( TODAY () ) )
RETURN
    IF ( currDate >= TODAY () && currDate <= _endDate, "Y", "N" )

Applying a measure filter in Power BI - SQLBI

Regsards,

Xiaoxin Sheng

View solution in original post

lbendlin
Super User
Super User

Use the filter pane.

 

lbendlin_0-1695732733986.png

 

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

Use the filter pane.

 

lbendlin_0-1695732733986.png

 

Anonymous
Not applicable

Hi @Ttaylor9870,

You can create a measure formula to use on 'visual level filter' to compare current row context date and system date to return flag, then you can use this flag as condition to filter correspond records based on current date.

flag =
VAR currDate =
    MAX ( Table[Date] )
VAR _endDate =
    DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ) + 3, DAY ( TODAY () ) )
RETURN
    IF ( currDate >= TODAY () && currDate <= _endDate, "Y", "N" )

Applying a measure filter in Power BI - SQLBI

Regsards,

Xiaoxin Sheng

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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