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
kasti
Frequent Visitor

How to calculate in Power BI the %increase measure?

Hello, 

 

I have created a table as below and I would like to calculate % increase between "Current" and "LY Actuals" i.e. for Sales it will be 4% (52-50)/50. How can I code this? Thanks for help!

 

Example:

kasti_0-1681984175597.png

Here are the setting of this table, and the Sales & Orders are a calculated measures.

kasti_1-1681984229067.png

 

 

1 ACCEPTED SOLUTION
cursed
Frequent Visitor

Apolgise had to repost as I made a mistake on the previous post, so the forumla should be:

 

Test_Measure =
Var LY_sales = CALCULATE(SUM(Enter_your_table_name[Sales]),FILTER(Enter_your_table_name,Enter_your_table_name[Short name] = "LY Actuals"))
 
Var Current_sales = CALCULATE(SUM(Enter_your_table_name[Sales]),FILTER(Enter_your_table_name,Enter_your_table_name[Short name] = "Current"))
Return
(Current_sales - LY_sales) / LY_sales

Which should look somthing like this when you format it as a mesaure:
cursed_1-1682000196662.png
 Below is screen grab of the results returned:
cursed_4-1682000498000.png

 



Please let me know if you have any further questions, I've created the forumla so it should just plug and play in to the Dashboard all you need to do is change the table name.

Please do let me know if you require furhter assitance 

 

Many Thanks

Ben

View solution in original post

5 REPLIES 5
kasti
Frequent Visitor

Thanks @cursed for the 2nd option. It worked very well! 🙂

cursed
Frequent Visitor

No worries at all, happy that I could help solve your problem 🙂 

kasti
Frequent Visitor

Thanks for suggestion. I don't have a column called "Last Year" and "This Year" but both are included in one column as "Scenario". As such I could not follow the formula above. How to refine it?

cursed
Frequent Visitor

Apolgise had to repost as I made a mistake on the previous post, so the forumla should be:

 

Test_Measure =
Var LY_sales = CALCULATE(SUM(Enter_your_table_name[Sales]),FILTER(Enter_your_table_name,Enter_your_table_name[Short name] = "LY Actuals"))
 
Var Current_sales = CALCULATE(SUM(Enter_your_table_name[Sales]),FILTER(Enter_your_table_name,Enter_your_table_name[Short name] = "Current"))
Return
(Current_sales - LY_sales) / LY_sales

Which should look somthing like this when you format it as a mesaure:
cursed_1-1682000196662.png
 Below is screen grab of the results returned:
cursed_4-1682000498000.png

 



Please let me know if you have any further questions, I've created the forumla so it should just plug and play in to the Dashboard all you need to do is change the table name.

Please do let me know if you require furhter assitance 

 

Many Thanks

Ben

cursed
Frequent Visitor

Hey,

So the forumla I would use to solve this problem is as follows:

% Increase = ( ( SUM('Table'[This Year]) - SUM('Table'[Last Year] ) ) / SUM('Table'[Last Year] ) )
 
*You might notice I haven't times it by 100 which is what would normaly do, this is because Powerbi has button you can press which will format the number as a percentage [See screenshot below]
 
cursed_3-1681995104255.png

 



You should end up with somthing like this:

cursed_2-1681995018442.png

Please let me know if you have any further questions,

Many Thanks
Ben

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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