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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello,
Would be grateful for some help resolving my case.
I need to create a measure that will allow users to see 9 quarters prior and including the one they select in the filter (10 quarters on the chart)
So far my measure works partially: the quarter users select shows only the 1st month values of the selected but other quarters are correctly displayed. I can't figure out why and how to make the selected quarter also showing the full 3 months values instead of one.
On the below you can see I selected Q4 25 and the value in the bar chart shoudl be 9.6M but it returns only 3.5 that matches the first month of Q4 25.
My measure is next:
I tried to change the measure to use Quarter Year insted but it's not in the date format hence the measure doesn't work.
Visits - table with the date and the value
dim_time - calendar that used for filters
Presentation Calendar - calendar used for measure . (Presentation Calendar = dim_site)
Many thanks!
Solved! Go to Solution.
Hii @Tani4ka
The issue happens because your selected quarter filter is restricting the date table to the first month only, and your AnchorDate comes from that filtered context. So for the selected quarter, DATESINPERIOD is anchored to the first month, not the full quarter.
You should anchor on the end of the selected quarter, not the start.
Visits Last 9 Quarters =
VAR AnchorDate =
COALESCE(
ENDOFQUARTER('dim_time'[Date]),
MAX('dim_time'[Date])
)
RETURN
CALCULATE(
[Value],
REMOVEFILTERS('dim_time'),
DATESINPERIOD(
'dim_time'[Date],
AnchorDate,
-9,
QUARTER
)
)
Thank you SOOOO MUCH!
Hii @Tani4ka
The issue happens because your selected quarter filter is restricting the date table to the first month only, and your AnchorDate comes from that filtered context. So for the selected quarter, DATESINPERIOD is anchored to the first month, not the full quarter.
You should anchor on the end of the selected quarter, not the start.
Visits Last 9 Quarters =
VAR AnchorDate =
COALESCE(
ENDOFQUARTER('dim_time'[Date]),
MAX('dim_time'[Date])
)
RETURN
CALCULATE(
[Value],
REMOVEFILTERS('dim_time'),
DATESINPERIOD(
'dim_time'[Date],
AnchorDate,
-9,
QUARTER
)
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 47 | |
| 29 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 74 | |
| 39 | |
| 26 | |
| 24 |