cancel
Showing results for 
Search instead for 
Did you mean: 
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
Join Arun Ulag at MPPC23

Join Arun Ulag at MPPC23

Get a sneak peek into this year's Power Platform Conference Keynote.

PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors