Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi
I have a measure for year to date cost variance:
YTD Variance = CALCULATE ( [Variance], ALL(PERIODS[MonthName]), All(PERIODS[PD_PERIOD]), PERIODS[PD_PERIOD]<= MAX(PERIODS[PD_PERIOD]))
This works fine with a matrix where I have period in the columns, period being the finanical month number starting at 1 for April in UK.
I have a calculated column for month name in the same table which is just calculated from the period number:
MonthName = FORMAT(DATE(1, IF([PD_PERIOD]<9,PERIODS[PD_PERIOD]+3,PERIODS[PD_PERIOD]-9), 1), "MMM")
and as soon as I switch from period to month name in the matrix columns it stops giving a rolling total and gives an in month figure despite me adding in the "All(PERIODS[MonthName])" to the calculate filter?
Any ideas?
Your data model needs a proper calendar table, marked as such. If your fact table doesn't have dates you need to add a fake date column (for example first day of the month). Don't try to do time intelligence without a calendar table.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
6 | |
4 | |
3 | |
3 |
User | Count |
---|---|
11 | |
11 | |
8 | |
8 | |
8 |