How to calculate percentage when old value is ZERO

后端 未结 9 973
甜味超标
甜味超标 2021-01-31 16:20

I need the logic for the following situation. I am clueless in doing this.

Consider for January I have 10$ revenue and f

9条回答
  •  北海茫月
    2021-01-31 16:42

    You can add 1 to each example New = 5; old = 0;

    (1+new) - (old+1) / (old +1) 5/ 1 * 100 ==> 500%

提交回复
热议问题