Microsoft
Software
Hardware
Network
Question : RDLC and syntax help needed
I have a rdlc report and on the report I have the ServiceCost.value and Confirmed.value ( which is Boolean)
ServiceCost is Currency.
I can get a total for service cost. But how do I get the sum of servicecost.value if confirmed.value =False
I have tried every single statement below and the closest i get is
=FormatCurrency(Sum(str(Fi
elds!Servi
ceCost.Val
ue) -(str(Fields!ServiceCost.v
alue and Fields!Confirmed.value=Fal
se))))
If all evaluate to false it gives the correct amount. Which is $0.00
If all evaluate to true it gives the correct amount. Whatever the service total is.
If any ONE evaluates with a true and false for ServiceCost then it takes the .00 of the false and adds it to the total, throwing it all off.
So if it should be 241.00 it ends up as 241.25
All other attempts below
--------------------------
----------
----------
----------
----------
----------
----------
----------
----------
----------
----------
---
'=IIF(Fields!Confirmed.Val
ue = "False",0,0 and Sum(Fields!ServiceCost.val
ue))
'=Sum(IIF(Fields!ServiceCo
st.value and Fields!Confirmed.Value="Fa
lse",0,1))
'(CDec(Fields!ServiceCost.
Value and Fields!Confirmed.value=Fal
se)))
'=FormatCurrency(Sum(fix(F
ields!Serv
iceCost.Va
lue and Fields!Confirmed.value=Fal
se)))
'=IIf (Fields!Confirmed.value ,0,1 and sum(Fields!ServiceCost.Val
ue))
'=FormatCurrency(Sum(str(F
ields!Serv
iceCost.Va
lue) -(str(Fields!ServiceCost.v
alue and Fields!Confirmed.value=Fal
se))))
'=FormatCurrency(Sum(CDec(
Fields!Ser
viceCost.V
alue and Fields!Confirmed.value=Fal
se)))
'=Sum(IIF(Fields!Confirmed
.Value = "False", 1, 0))
'=Sum(IIF(Fields!ServiceCo
st.value and Fields!Confirmed.Value,0,0
))
'=IIF(Fields!Confirmed.Val
ue = "False", 0, 0 and Sum(Fields!ServiceCost.val
ue))
'=FormatCurrency(Sum(Field
s!ServiceC
ost.Value and Fields!Confirmed.value=Fal
se))
Answer : RDLC and syntax help needed
Sorry. Have a look at this article. I believbe it is what your looking for
http://technet.microsoft.c
om/en-us/l
ibrary/ee3
32316.aspx
Random Solutions
Can you take the code from a Joomla Template and its modular layout, copy a "generic" version of the pages code and paste the code in when you need the same kind of page layout. If so how?
3 monitors on i5-650 on Gigabyte GA-H55M-UD2H
Event ID 364 when synchronizing WSUS 3.0 SP1
Setup Webmail on MS SBS 2003
Redundant tables in Data Sources window of VIsual Studio 2010
SQL Query
Two Inboxes in Outlook 2007
connect to sql database using php
OpenVMS logs to be sent using syslog
PHP - No results show for If else statement