4 Replies Latest reply: Apr 27, 2017 9:29 AM by Mohammad Adnan Ansari RSS

    Dividing two variables produce wrong results

    Mohammad Adnan Ansari

      I have defined the below variables in the system:

       

      vSales1

      vSales2

      vTickets1

      vTickets2

       

      vSales = $(vSales1) + $(vSales2)

       

      vTickets = $(vTickets1) + $(vTickets2)

       

      AverageSales = ($(vSales1) + $(vSales2)) / ($(vTickets1)+$(vTickets2)) bring rights results.

       

      where as the below formula brings wrong results:

      AverageSales = $(vSales) / $(vTickets)

       

      any idea how to resolve this?