Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello everyone,
I have a Power BI report with a date slicer based on a Calendar table. When a user selects a month (e.g., December 2025), I want my visuals (tables and charts) to show data for the selected month plus the two previous months. For example:
Solved! Go to Solution.
Hi, @vshinto , you have try with a disconnected table for display the dimensiones previous values from slicer.
Hi, @vshinto , you have try with a disconnected table for display the dimensiones previous values from slicer.
Hello i make something similar this to solve my problem.
Thank you.
Hi @vshinto
SelectedAndPreviousTwoMonths =
VAR LastVisibleDate =
MAX ( 'Calendar'[Date] ) // Última data visível no contexto do slicer
RETURN
CALCULATE (
[Total Sales],
DATESINPERIOD (
'Calendar'[Date],
LastVisibleDate,
-3,
MONTH
)
ShowLast3Months =
VAR SelectedDate = MAX ( 'Calendar'[Date] )
RETURN
IF (
'Calendar'[Date] >= EDATE ( SelectedDate, -2 )
&& 'Calendar'[Date] <= SelectedDate,
1,
0
If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.
Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |