Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
fernandoicosta
Contributor III
Contributor III

Curva ABC

Ola!

Estou tentando fazer uma expressão de calculo no qlik sense para somar o valor acumulado para eu poder fazer o tratamento da curva ABC, mas não estou tendo sucesso pois não estou conseguindo obter a soma:

Eu estou tentando esta função abaixo:

If(RangeSum(Above($(vFaturamento2015),1,RowNo()))

/ $(vFaturamento2015_Total) <= 0.0008, 'A',

If(RangeSum(Above($(vFaturamento2015),1,RowNo()))

/ $(vFaturamento2015_Total) <= 0.9, 'B', 'C'))

Mas ja tentei também:

RangeSum (Above ($(vFaturamento2015), 1, RowNo ())) /

($(vFaturamento2015_Total))

Se alguem puder me ajudar eu agradeço.

Eu uso o clik sense.

Fernando

1 Solution

Accepted Solutions
fernandoicosta
Contributor III
Contributor III
Author

Pessoal, Consegui resolver.

A função correta ficou assim:

if (RangeSum (Above (Sum (VALOR_TOTAL), 1, RowNo ()), Sum (VALOR_TOTAL))/Sum(Total VALOR_TOTAL)<= 0.8, 'A',

if (RangeSum (Above (Sum (VALOR_TOTAL), 1, RowNo ()), Sum (VALOR_TOTAL))/Sum(Total VALOR_TOTAL)<= 0.95, 'B', 'C'))

Abraço a todos !!!

View solution in original post

1 Reply
fernandoicosta
Contributor III
Contributor III
Author

Pessoal, Consegui resolver.

A função correta ficou assim:

if (RangeSum (Above (Sum (VALOR_TOTAL), 1, RowNo ()), Sum (VALOR_TOTAL))/Sum(Total VALOR_TOTAL)<= 0.8, 'A',

if (RangeSum (Above (Sum (VALOR_TOTAL), 1, RowNo ()), Sum (VALOR_TOTAL))/Sum(Total VALOR_TOTAL)<= 0.95, 'B', 'C'))

Abraço a todos !!!