Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Sebastian
Advocate III
Advocate III

comparing current totals to last year totals based on a date filter

Hi all,

 

I hope some could help me.

 

I have a matrix visual which consists of two measures. The first measure shows the total amount of the current year

and the second measure calculates the total amount for the same period in the last year.

 

The Period is choosen in a Filter visual. The total amount for the current year is right but for the last year is wrong. Could someone help?

 

1.Measure

CurrentAmount = Sum(Amount)

 

2.Measure

AmountLY = Calculate(sum(Amount);Sameperiodlastyear(Calender[Date]))

1 ACCEPTED SOLUTION
PavelR
Solution Specialist
Solution Specialist

@Sebastian

maybe this topic could help.

 

Regards.

Pavel

View solution in original post

1 REPLY 1
PavelR
Solution Specialist
Solution Specialist

@Sebastian

maybe this topic could help.

 

Regards.

Pavel

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors