[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 594: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 650: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 1110: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5277: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Fórum Xmaker • Fórmulas
Página 1 de 1

Fórmulas

Enviado: Maio 9th, 2012, 10:49 am
por William
Como faço para calcular A M??DIA dos campos:
IB_LOCAL_1;
IB_LOCAL_2;
IB_LOCAL_3;
IB_LOCAL_4;
RESUTADO EM UM CAMPO: IB_GERAL - MASCARA: 9,99

e a PORCENTAGEM dos campos:
IM_LOCAL_1;
IM_LOCAL_2;
IM_LOCAL_3;
IM_LOCAL_4;
RESULTADO EM UM CAMPO: IM_GERAL - MASCARA: 99,99

Re: Fórmulas

Enviado: Maio 9th, 2012, 2:58 pm
por Gustavo
Olá,

IB_GERAL tem que ser um campo calculado com máscara 9,99.

O cálculo do campo é

Result := (Tabglobal.nome_tabela.IB_LOCAL_1+
Tabglobal.nome_tabela.IB_LOCAL_2+
Tabglobal.nome_tabela.IB_LOCAL_3+
Tabglobal.nome_tabela.IB_LOCAL_4) /4


Sobre a porcentagem não entendemos exatamente o que você quer fazer.