Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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...
Name | Date |
AA | 21/10/2023 |
BB | 21/11/2023 |
CC | 21/12/2023 |
DD | 25/11/2023 |
Many Thanks,
Taylor
Solved! Go to Solution.
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
Use the filter pane.
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
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
9 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |