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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.