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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors