Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Order of operations is off/producing wrong result

I'm doing (a - b) / b but it's giving me the wrong result. Am I writing it correctly? I want to do a - b first and then divide it by b. Ex (Sum([field 1]) - Sum ([field 2])) / Sum([field 2])

3 Replies
pathiqvd
Creator III
Creator III

Hi Nicholas,

  Your expression Is correct. Please share your full expression.

(Sum(A)-Sum(B))

/

Sum(B)

Regards,

its_anandrjs

It seems right but try this ways

=( Sum ( [field 1]   -  [field 2] ) )  / Sum ( [field 2] )

Regards

Anand

vipingarg23
Creator
Creator

Expression is fine. Please share your data if you can.