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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
BobKoenen
Helper IV
Helper IV

Total sum last year regardles of filters on page

Hi all,

 

I have a report page with a Matrix table and a Month slicer. 

 

CustomerSales this yearSales previous yearTotal sales previous year
A100120700
B4050500
C901201000

 

The measures [sales this year] and [Sales previous year] are dependent on the month slicer but I want the [Total Sales Previous year] measure to always show the cumulative sales of the entire previous year. 

Can you help me to get the formula for [Total Sales Previous Year]

1 ACCEPTED SOLUTION
SanketBhagwat
Solution Sage
Solution Sage

Hi @BobKoenen .

You can use;

 [Total Sales Previous Year]=CALCULATE(SUM(table[column]),SAMPLEPERIODLASTYEAR(table[date])).

 

Regards,

Sanket Bhagwat.

 

If this post helps,then please mark it as 'Accept as Solution' so that other members could find it quickly.

View solution in original post

2 REPLIES 2
SanketBhagwat
Solution Sage
Solution Sage

Hi @BobKoenen .

You can use;

 [Total Sales Previous Year]=CALCULATE(SUM(table[column]),SAMPLEPERIODLASTYEAR(table[date])).

 

Regards,

Sanket Bhagwat.

 

If this post helps,then please mark it as 'Accept as Solution' so that other members could find it quickly.

Tanushree_Kapse
Impactful Individual
Impactful Individual

Hi @BobKoenen ,

 

Try using this measure:
Total Sales= CALCULATE(CALCULATE(SUM(Sales),ALL(Dates)),Previousyear(Dates))

 

Please give a thumbs up and mark it as a solution, if it answers your issue.

Thanks.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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