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
Anonymous
Not applicable

percentage of difference between values in power bi

s1.PNG

 

how calculate percentage of difference between values in power bi using this formula?

% diff =(new_value-old_value)/old_value 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

You can get the diff between two values(conventional value) with a measure .

diff = SELECTEDVALUE('Table'[Current Values])-SELECTEDVALUE('Table'[Previous Values])

Then use DIVIDE dax to create a measure like this:

percentage = DIVIDE([diff],SELECTEDVALUE('Table'[Previous Values]))

The effect is as shown :

Ailsa-msft_0-1621416866368.png

Best Regards

Community Support Team _ Ailsa Tao

 

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

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous 

You can get the diff between two values(conventional value) with a measure .

diff = SELECTEDVALUE('Table'[Current Values])-SELECTEDVALUE('Table'[Previous Values])

Then use DIVIDE dax to create a measure like this:

percentage = DIVIDE([diff],SELECTEDVALUE('Table'[Previous Values]))

The effect is as shown :

Ailsa-msft_0-1621416866368.png

Best Regards

Community Support Team _ Ailsa Tao

 

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

dkaushik
Resolver II
Resolver II

Hi @Anonymous ,

 

Try creating a measure like this:
%Diff = var NewValue = sum('Table"[NewValue])

             var OldValue = sum('Table'[OldValue])

return
DIVIDE([NewValue]-[OldValue], [OldValue])

Thanks,

Dheeraj

If this post helps, then please consider Accept it as the solution and give thumbs up to help the other members find it more quickly.

amitchandak
Super User
Super User

@Anonymous , You need to have an index column for this.

 

Please add one in power query and try like if average rate is a column

 

diff =
var _1 = maxx(filter(Table, [index] =earlier([index])-1),[Avg Rate])
return
divide([Avg Rate] -_1,_1)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

s2.PNG

getting error like this....

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.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Kudoed Authors