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
anime4tw
Regular Visitor

Compare Previous Year by Fiscal Week

Hi there,

 

I'm looking to compare this year's sales to last years sales, but based on Fiscal Week.

 

When I use a Measure called "Sales LY" - certain weeks are empty (even though they have data - double checked)

 

Sales LY = CALCULATE( [Total Production], DATEADD( Dates[Date], -1, YEAR ) )
I've attached a picture of the data.
As you can see from the table on the right - There is data for the period for the fiscal week for each fiscal year... but it doesn't populate when using the Sales LY calculation - I'm sure it has something to do with how it's being calculated.
SalesLY-byFiscalWeek01.png
 
Please help.
 
 
//bijan
 
1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@anime4tw 

 

You may try to add an additional filter to CALCULATE Function.

ALL ( Table1[FY] )

https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/

Community Support Team _ Sam Zha
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

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@anime4tw 

 

You may try to add an additional filter to CALCULATE Function.

ALL ( Table1[FY] )

https://www.sqlbi.com/articles/time-intelligence-in-power-bi-desktop/

Community Support Team _ Sam Zha
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.