Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
how calculate percentage of difference between values in power bi using this formula?
% diff =(new_value-old_value)/old_value
Solved! Go to Solution.
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 :
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.
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 :
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.
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.
@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)
getting error like this....
User | Count |
---|---|
98 | |
76 | |
74 | |
49 | |
26 |