Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

% Deviation CR

Pessoal, boa tarde!

POdem me ajudar com este caso?

Estou calculando a porcentagem entre duas colunas no item a intem está correto, porém na somatória da errado, veja, no exemplo abaixo que o cálculo da porcentagem é soma da coluna "Deviation" / soma da coluna "Request" está dando 65% quando deveria ser 134% (neste caso).

Em anexo o arquivo...

Desde já agradeço.

dash1508.JPG

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

Try this

= IF (Sum ({<ANALYSIS_CODE = {'REQ_ORD'}>} QTY) = 0, '100%',

Sum ({<ANALYSIS_CODE = {'REQ_ORD'}>} QTY) -Sum ({<ANALYSIS_CODE = {'KAM'}>} QTY)), PL2_NM) 'REQ_ORD'}>} QTY))


Capture.PNG

View solution in original post

2 Replies
sunny_talwar

Try this

= IF (Sum ({<ANALYSIS_CODE = {'REQ_ORD'}>} QTY) = 0, '100%',

Sum ({<ANALYSIS_CODE = {'REQ_ORD'}>} QTY) -Sum ({<ANALYSIS_CODE = {'KAM'}>} QTY)), PL2_NM) 'REQ_ORD'}>} QTY))


Capture.PNG

Anonymous
Not applicable
Author

Great!!!

Thank you so much @Sunny Talwar!!!