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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
BárbaraBraga
Regular Visitor

Calculate difference in proficiency from one year to another

Hi, I would like to calculate whether the average proficiency of a year has increased or decreased from one year to the next.

For example, in 2021 the average proficiency was 250, in 2019 it was 240. What formula do I use to calculate this difference?

I used the sameperiodlastyear formula, but the results came back blank.
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @BárbaraBraga ,

 

Please try:

 

Measure = 
var _pre=CALCULATE(SUM('Year-Value'[Value]),FILTER(ALL('Year-Value'),[Year]=MAX('Year-Value'[Year])-1))
return IF(SUM('Year-Value'[Value]) - _pre>0, "Increased","Decreased")

Eyelyn9_0-1672215544764.png

Best Regards.

Eyelyn Qin

If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @BárbaraBraga ,

 

Please try:

 

Measure = 
var _pre=CALCULATE(SUM('Year-Value'[Value]),FILTER(ALL('Year-Value'),[Year]=MAX('Year-Value'[Year])-1))
return IF(SUM('Year-Value'[Value]) - _pre>0, "Increased","Decreased")

Eyelyn9_0-1672215544764.png

Best Regards.

Eyelyn Qin

If this post helps, please consider accept as solution to help other members find it more quickly.

BárbaraBraga
Regular Visitor

Hi, I'm new to Power Bi, so I have no idea if this sample is helpful.

But, basically, as I said, i want to calculate the diference of proficiency from one year to another. 

I created a new column, to convert the edit column into date using the following formula: date(left(edit column), 4), 1,1)

However, the sameperiodlastyear formula is not working to make this difference calculation

 

BrbaraBraga_0-1671192602434.png

Thank you very much for helping me.

FreemanZ
Super User
Super User

hi @BárbaraBraga 

it would be easier for all, if you can provide some sample data.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.