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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.