Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
andre_tonini
Creator II
Creator II

Valor Acumulado

Pessoal,

      Li vários postes porem estou com dificuldade em elaborar o valor acumulado conforme segue arquivo em anexo.

      Preciso saber o valor acumulado por linha na coluna "% Acumulado".

      Desde já agradeço pela ajuda.

att,

André Tonini

Labels (1)
1 Solution

Accepted Solutions
nicolett_yuri

Olhando seu QVW, fica assim:

rangesum( Above(TOTAL

((((SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_TOTALITEM))

+

(SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_IPIVALOR))))

+

(((SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_TOTALITEM))

+

(SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_IPIVALOR))))

+

(((SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_TOTALITEM))

+

(SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_IPIVALOR)))))

/

((((SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_TOTALITEM))

+

(SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_IPIVALOR))))

+

(((SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_TOTALITEM))

+

(SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_IPIVALOR))))

+

(((SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_TOTALITEM))

+

(SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_IPIVALOR)))))

,0, RowNo(TOTAL)

))

View solution in original post

4 Replies
nicolett_yuri

André, faça assim:

RANGESUM( Above( TOTAL SUA_EXPRESSAO,0,RowNo(TOTAL)))

nicolett_yuri

Olhando seu QVW, fica assim:

rangesum( Above(TOTAL

((((SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_TOTALITEM))

+

(SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_IPIVALOR))))

+

(((SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_TOTALITEM))

+

(SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_IPIVALOR))))

+

(((SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_TOTALITEM))

+

(SUM({<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_IPIVALOR)))))

/

((((SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_TOTALITEM))

+

(SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Montadora'}>}PVI_IPIVALOR))))

+

(((SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_TOTALITEM))

+

(SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Tanques/Acessorios/Semi-Leito'}>}PVI_IPIVALOR))))

+

(((SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_TOTALITEM))

+

(SUM(TOTAL{<PDV_TVE_CODIGO = {'1'},PDV_PSI_CODIGO = {'FF'}, Descriçao_Segmento = {'Implementos'}>}PVI_IPIVALOR)))))

,0, RowNo(TOTAL)

))

nicolett_yuri

Consegui postar o QVW, segue!

andre_tonini
Creator II
Creator II
Author

Yuri,

      Era exatamente isso que Eu precisava, muito obrigado!!

Att,

André Tonini

Controladoria