I'm in crisis with a reportviewer here, can you help me?
Well, the problem is basically that I have a column that the values are INT and can be zero.
Gotta take this column and divide by
NV and PROJETADO (Projetado / NV) , but I'm picking up to make this query and filter the wrong division.
Do know a way? Here the details of my query:
All
columns will return me the total price (SUM) except that it returns as # ERROR.
|
Projetado
|
Data
|
Pesquisa
|
Informação
|
GIV
|
NV
|
*T.M.
|
|
10.000,00
|
28/5/2012
|
10.000,00
|
|
2.000,00
|
29
|
344,83
|
|
400,00
|
4/6/2012
|
0,00
|
|
0,00
|
0
|
0,00
|
|
11.880,00
|
5/6/2012
|
0,00
|
|
11.880,00
|
0
|
0,00
|
|
998,00
|
6/6/2012
|
998,00
|
|
300,00
|
9
|
110,89
|
|
100,00
|
7/6/2012
|
0,00
|
|
0,00
|
0
|
0,00
|
|
100,0
|
8/6/2012
|
100,00
|
|
100,00
|
5
|
20,00
|
|
23.478,00
|
|
11.098,00
|
800,00
|
14.280,00
|
43
|
#Error
|
The PROJETADO is the column that
receives the greatest value of PESQUISA, INFORMAÇÃO, GIV.I have to get
the value of this column ( PROJETADO )
and divide by the column TM The column
is the column NV TM divided
by column PROJETADO.
I need the
sum of the column TM,
but I only back the value
error.
= FormatNumber (IIf (Fields!Auditado.Value > Fields!Reducao.Value, ( SUM (IIf (Fields!Auditado.Value > Fields!Reducao.Value, FormatNumber ( Fields!Auditado.Value)
, IIf (Fields!Reducao.Value > Fields!Vendas.Value, FormatNumber(Fields!Reducao.Value), Fields!Vendas.Value)) / Fields!Itens.Value)),
IIf (Fields!Reducao.Value > Fields!Vendas.Value, (( SUM (IIf (Fields!Auditado.Value > Fields!Reducao.Value, FormatNumber ( Fields!Auditado.Value),
IIf (Fields!Reducao.Value > Fields!Vendas.Value, FormatNumber(Fields!Reducao.Value), Fields!Vendas.Value)) / Fields!Itens.Value)) ), ( SUM (IIf (Fields!Auditado.Value > Fields!Reducao.Value, FormatNumber ( Fields!Auditado.Value),
IIf (Fields!Reducao.Value > Fields!Vendas.Value, FormatNumber(Fields!Reducao.Value), Fields!Vendas.Value)) / Fields!Itens.Value)))))
Assunto = dúvida