Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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á...
Bom dia Guilherme, tem como postar um .qvw de exemplo só pra facilitar a ajuda?
Tá ai cara, tem o comentário explicando oque é o saldo final.
Tentou com Above() e Before()?
Veja o exemplo anexo
Cara, não acredito que era só o Before, mas sinceramente não conhecia esse comando !
Valeu d+ Clever Anjos !!
Att,
Guilherme Fonseca