cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BobKoenen
Helper III
Helper III

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
Helper V
Helper V

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
Helper V
Helper V

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

Tanushree_Kapse
Resolver III
Resolver III

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
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Urdu Hindi D365 Bootcamp 768x460.png

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Top Solution Authors