Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
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.