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
Anonymous
Not applicable

Sales LY using header filters

Hi fellows,

 

I use to work with Power for a long time but I always find same problem with header filters. I dont know how can I desing proper formul to obtenain automatic calculate measure Net Sales LastYear

 

Here:

 

[IMG]http://i65.tinypic.com/2eku6c6.jpg[/IMG]

 

Thanks in advanced

1 ACCEPTED SOLUTION

Hi @Anonymous 

Create a calendar table connecting to your fact table

calendar = CALENDARAUTO()

Create a measure in your fact table

LY sales = CALCULATE(SUM(Sheet2[sales]),SAMEPERIODLASTYEAR('calendar'[Date]))

Add [Date] from calendar table into a slicer

2.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

<a href="http://es.tinypic.com?ref=2eku6c6" target="_blank"><img src="http://i65.tinypic.com/2eku6c6.jpg" border="0" alt="Image and video hosting by TinyPic"></a>

Anonymous
Not applicable

Error Net Sales.jpg

Anonymous
Not applicable

Error Net Sales2.jpg

Hi @Anonymous 

Create a calendar table connecting to your fact table

calendar = CALENDARAUTO()

Create a measure in your fact table

LY sales = CALCULATE(SUM(Sheet2[sales]),SAMEPERIODLASTYEAR('calendar'[Date]))

Add [Date] from calendar table into a slicer

2.png

Best Regards
Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.