Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Help Calculating Last Year Value and % Change for a Measure

I have a calculated measure, $ per item (SUM(billed dollars)/SUM(item volume). What I am trying to do eventually is calculate the % change compared to a prior year. From my understanding I first need a value for Last Year $ per item before I can calculate this. So for example I am looking at something like this: 

 

YEAR     January

2018      $40.79

2019      $43.89

 

In the end I am looking for the % change compared to prior year: approx. 7%

 

I have tried the following already: 

$per item LY = CALCULATE([$ per item],SAMEPERIODLASTYEAR([EnteredDate])) <-returns all blanks
 
$ per item % Change =
IF(
    ISFILTERED('vw_xxx'[EnteredDate]),
    VAR __PREV_YEAR =
        CALCULATE(
            [$ per item],
            DATEADD('vw_xxx'[EnteredDate], -1, YEAR)
        )
    RETURN
        DIVIDE([$ per Item] - __PREV_YEAR, __PREV_YEAR)
)
 Which also returns all blanks.
 

 

1 REPLY 1
Anonymous
Not applicable

Also to clarify that example data is how I'm looking at it in a matrix, it is not my table.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors