Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Saldo inicial (Mês anterior)

Bom dia galera,

Estou montando uma tabela dinâmica que vai ser apresentada da seguinte maneira:

Conta fev mar
a saldo inicial debito credito saldo final saldo inicial debito credito saldo final
b 20 10 10 0 0 150 114 36
c 30 20 10 10 10 125 189 -64
d 40 10 10 0 0 212 246 -34
e 50 5 15 -10 -10 221 214 7
f 60 10 20 -10 -10 115 258 -143
g 70 10 25 -15 -15 215 147 68

O saldo inicial é o saldo final do mês anterior. E é isso que ta pegando, não ta saindo, tentei 'n' set analysis:

Sum({$<MES_LANC={'$(=AddMonths(Only(MES_LANC),-1))'}>} VALR_CALCULADO)

Sum( {$<MES_LANC = {$(#=Only(MES_LANC)-1)}>} VALR_CALCULADO)

Sum({1<MES_LANC={'$(=Max(MES_LANC)-1')}>} VALR_CALCULADO)

e nenhum deu certo... algum tem uma ideia ai pra me ajudar

Agradeço desde já...

1 Solution

Accepted Solutions
Clever_Anjos
Employee
Employee

Tentou com Above() e Before()?

Veja o exemplo anexo

View solution in original post

4 Replies
matzenbacher
Creator II
Creator II

Bom dia Guilherme, tem como postar um .qvw de exemplo só pra facilitar a ajuda?

Not applicable
Author

Tá ai cara, tem o comentário explicando oque é o saldo final.

Clever_Anjos
Employee
Employee

Tentou com Above() e Before()?

Veja o exemplo anexo

Not applicable
Author

Cara, não acredito que era só o Before, mas sinceramente não conhecia esse comando !
Valeu d+ Clever Anjos !!

Att,
Guilherme Fonseca