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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have this measure [xyz] that sums the last 12 month revenue:
@Sweetsoda
use this instead
XYZ=
CALCULATE(
[Total revenue],
DATESINPERIOD('Table Calendar'[Date], MAX('Table Calendar'[Date]), -365, DAY)
)
I Datesinperiod actually returns a table and should give you the desired result.
Hi Jngum,
Your solution changes a bit some of the values of [xyz] but doesn't change the behaviour of [x].
[x] only matches [xyz] on year subtotals but not at every month level).
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!