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

Prior week Sales change measure not working

I apologize if this has already been answered.  I could not find a similar issue or resolution.

 

I am running the March 2017 release of Powerbi Desktop.

 

We have a custom date calendar.  To that end, I have created a separate date table (Fiscal_Calendar_Daily) , one row for each date. I also have a column in this table called week ending date which has the last day of the fiscal week.

 

I have built some prior week sales measure(s) and they work perfectly in a table in Powerbi.  Here is the calc for prior week

 

Total Net Sales PW = CALCULATE([Total Net Sales], FILTER(ALL(Fiscal_Calendar_Daily[WeekEndingDate]), Fiscal_Calendar_Daily[WeekEndingDate] = max(Fiscal_Calendar_Daily[WeekEndingDate])-7))

 

When I try to do a % change calc referencing this measure, it comes back null.    When I simply pull in this measure to a table visualization , it works perfectly. I have filters (slicers) to select the appropriate fiscal year and fiscal week.

 

I have never had this situation where a measure could not be referenced into another measure.  I must have something wrong, but not sure what the issue is.

 

Thanks very much.

 

Pete

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

>>When I try to do a % change calc referencing this measure, it comes back null.   

 

How did you to reference this measure and which visual did you use to display that %change? Please share some sample data and desired results to clarify the issue.

 

Best Regards,
Qiuyun Yu

>>>.......ccv>>..

Community Support Team _ Qiuyun Yu
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.

Top Solution Authors