c# - RDLC #Error driving me nuts (per page subtotals) -
i've got report table looking this:
usercode|recordid|originatingbranch|originatingaccount|homingbranch|homingaccount|amount|actiondate|seqno|onus|homedback
the last 2 columns booleans, contain either y or n. in fact, onus column contain ys. need have subtotal @ end of each page showing how many onus transactions there , value, , same onus transactions.
i've tried several things including described here when try i'm left nondescript #error
in report. have no errors or logs or anything, #error
should have number.
now i'm trying answer here, says:
add additional column , enter expression: =runningvalue(fields!yourvalue.value,sum,"yourtable1"), , set hidden property true.
in page header or footer, use expression: =last(reportitems!textbox12.value) subtotal of previous pages.( assume above column’s detail row textbox12)
i've put in table, expression:
=runningvalue(iif(fields!homedback.value="y", fields!amount2.value, 0),sum,"items") //my tablix called "items" , "amount" field formatted string, //the actual value kept in "amount2"
and lo , behold, getting famous #error
again. first row contains 0, , every row after contains #error
.
i should note i'm not viewing report in browser or interactively or that, i'm using company's old reporting library terrible , needs rewritten (i wish), , pretty takes dataset , rdlc , spits out pdf.
is there glaringly obvious wrong expression? i'm pretty new rdlc feel i'm missing silly. there way show these #error
s mean or correspond to?
another note, designed rdlc in vs2013 if makes difference.
ssrs can give #error
because of data type mismatch. might evaluating amount2 string field instead of numeric. avoid such conditions explicit conversion.
try this:
=runningvalue(iif(fields!homedback.value="y", fields!amount2.value*1.0, 0.0),sum,"items")
or
=runningvalue(iif(fields!homedback.value="y", cdbl(fields!amount2.value), 0.0),sum,"items")
or
=runningvalue(iif(fields!homedback.value="y", cdec(fields!amount2.value), 0),sum,"items")
Comments
Post a Comment