Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hello,
I have this measure "current year - previous year":
Solved! Go to Solution.
Hi @SCannaerts ,
Try to use the below dax ,if not work ,could you pls share sample data,remember to remove confident data.
daxx =
CALCULATE (
SUM ( 'Turnover'[Turnover] ),
FILTER ( ALL ( 'date' ), YEAR ( 'date'[Date] ) = YEAR ( TODAY () ) )
)
- CALCULATE (
SUM ( 'Turnover'[Turnover] ),
FILTER ( ALL ( 'date' ), YEAR ( 'date'[Date] ) = YEAR ( TODAY () ) - 1 )
)
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi,
There should be a relationship from the Date column of the Turnover table to the Date column of the Date Table. In the Date Table, you should have columns for Year, Month name and Month number. Sort the Month name by the Month number. To your slicer, drag Year from the Date Table. Write these measures
Total = sum('Turnover'[Turnover])
Total in PY = calculate([Total],previousyear(Date[Date]))
Diff = [total]-[total in PY]
Hope this helps.
Hi @SCannaerts ,
Try to use the below dax ,if not work ,could you pls share sample data,remember to remove confident data.
daxx =
CALCULATE (
SUM ( 'Turnover'[Turnover] ),
FILTER ( ALL ( 'date' ), YEAR ( 'date'[Date] ) = YEAR ( TODAY () ) )
)
- CALCULATE (
SUM ( 'Turnover'[Turnover] ),
FILTER ( ALL ( 'date' ), YEAR ( 'date'[Date] ) = YEAR ( TODAY () ) - 1 )
)
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.