Soma condicional em Relatório

Destinado ao auxílio e Troca de informações sobre a ferramenta Xmaker
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
andrec
Mensagens: 8
Registrado em: Maio 8th, 2016, 11:23 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Soma condicional em Relatório

Mensagempor andrec » Agosto 8th, 2017, 5:13 pm

Alguém sabe como fazer uma soma condicional em relatório?
Sabem se é possível com a versão do FreeReport que acompanha o Xmaker?

Eu estava tentando algo do tipo:

[SUM(IF(DCONTAS."TIP_DESCRICAO" = 'BOLETO', [DCONTAS."CON_VALOR"], 0))]

A intenção era fazer no sumário do relatório um resumo dos totais por forma de pagamento.

É possível fazer uma soma condicional no FreeReport, seja por uma expressão ou mesmo via script?

Agradeço desde já a ajuda...

[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable

Voltar para “Xmaker”

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 1 visitante