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'm using SAMEPERIODLASTYEAR to compare the number of incoming mails per month to the same month the previous year, but it appears to add the numbers from this year to last year.
The set-up is very simple: I have a table (Mail) which contains the number of mails (Amount), the type of mail (Category) and the date on which they came in (Date). Besides that I have a date table (tbl_date).
I have 2 formulas, Total This Year and Total Last Year:
January and February last year should just be empty, just like the remaining months for this year are.
Solved! Go to Solution.
Adjust your DAX as...
CALCULATE(
[Totaal],
SAMEPERIODLASTYEAR(tbl_date[Date]),
tbl_date[Year] = YEAR(TODAY()) - 1
)
Proud to be a Super User!
Adjust your DAX as...
CALCULATE(
[Totaal],
SAMEPERIODLASTYEAR(tbl_date[Date]),
tbl_date[Year] = YEAR(TODAY()) - 1
)
Proud to be a Super User!
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!