Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
leocattqv
Creator
Creator

Division and Multiplication....

Hello,

I have 2 sums of Calculations that I am trying to Divide..and multiply

=Sum({<NCMR.Division={'TJM', 'VST'}>} [NCMR.Rej Qty]) /  (Sum({<NCMR.Division={'TJM', 'VST'}>})) [No_Approved Parts) *1000000

there is something in the syntax that is tripping me up.

Any suggestions?

thanks,

Leo Catt

3 Replies
swuehl
MVP
MVP

=Sum({<NCMR.Division={'TJM', 'VST'}>} [NCMR.Rej Qty]) /

Sum({<NCMR.Division={'TJM', 'VST'}>} [No_Approved Parts]) *1000000

hic
Former Employee
Former Employee

A mismatch of brackets in [No_Approved Parts)


HIC

Anonymous
Not applicable

=Sum({<NCMR.Division={'TJM', 'VST'}>} [NCMR.Rej Qty]) /  (Sum({<NCMR.Division={'TJM', 'VST'}>})) [No_Approved Parts) *1000000

remove the the second closing parenthesis in the denominator before [No_Approved Parts...also closing parentehsis for the field in the denominator is missing too. try this:

=(Sum({<NCMR.Division={'TJM', 'VST'}>} [NCMR.Rej Qty]) /  Sum({<NCMR.Division={'TJM', 'VST'}>} [No_Approved Parts]) )*1000000

i'm assuming you want the result from division to be multiplied with 1000000.