cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

% change not showing for last year in table

I'm sure someone can easily resolve this, I can't.  Here is my DAX for Current Yr Growth %:

Current Yr Growth% =
VAR py_sales =
CALCULATE (
[Total Past ACV and Estimate],
FILTER (
ALLSELECTED ( 'Calendar Table'[Year] ),
'Calendar Table'[Year]
= MAX ( 'Calendar Table'[Year] ) - 1
)
)
VAR YOY_Sales = [Total Past ACV and Estimate] - py_sales
RETURN
DIVIDE ( YOY_Sales, py_sales )
 
See image, the last year in the table will show percent. You can't see it all, but the percentage to the right of $12.3M is missing.You can't see it all, but the percentage to the right of $12.3M is missing.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper III
Helper III

Re: % change not showing for last year in table

I created a new column for previous years sales, I think I was using SAMEPERIODLASTYEAR somewhere and that was messing things up. 

 

Prev Yr PV = CALCULATE([Total Past ACV and Estimate], PREVIOUSYEAR('Calendar Table'[Date]))
 
YoY Change = DIVIDE( [Total Past ACV and Estimate] - [Prev Yr PV] , [Prev Yr PV])
 
This created a percentage for the last year in the list. 

View solution in original post

3 REPLIES 3
Highlighted
Super User II
Super User II

Re: % change not showing for last year in table

@cbtekrony 

interesting. have you tried to debug?

RETURN
YOY_Sales
 
then
 
RETURN
py_sales 

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Highlighted
Microsoft
Microsoft

Re: % change not showing for last year in table

Hi @cbtekrony ,

It seems that in the rows which the value of Current Yr Growth % is blank, the corresponding values of YOY_Sales and py_sales is blank (one of them is blank or both are blank). Could you please  provide the formula of measure [Total Past ACV and Estimate] and sample data in relevant tables to make troubleshooting in order to find the cause to solve it? Thank you.

Best Regards

Rena

Highlighted
Helper III
Helper III

Re: % change not showing for last year in table

I created a new column for previous years sales, I think I was using SAMEPERIODLASTYEAR somewhere and that was messing things up. 

 

Prev Yr PV = CALCULATE([Total Past ACV and Estimate], PREVIOUSYEAR('Calendar Table'[Date]))
 
YoY Change = DIVIDE( [Total Past ACV and Estimate] - [Prev Yr PV] , [Prev Yr PV])
 
This created a percentage for the last year in the list. 

View solution in original post

Helpful resources

Announcements
June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors