Quantcast
Channel: SQL Server Reporting Services
Viewing all articles
Browse latest Browse all 1418

Use a expression from a table textbox in another table textbox

$
0
0

Hi,

I am creating a report in asp .net using the ReportViewer control. The table is as follows :

S.NoCodeItemQtyRateDiscountAmount
<<expr>>
=RowNumber("dataset1")
[RowNum]
[Code][Item][Qty][Rate][Discount]<<expr>>
=Round(Fields!QUANTITY.Value * Fields!RATE.Value * (100-Fields!DISCOUNT.Value)/100,2)
[ItemCost]
Sub Total=SUM(Round(Fields!QUANTITY.Value * Fields!RATE.Value * (100-Fields!DISCOUNT.Value)/100,2))
[Total_PaperCost]
Frieght=iif(TRIM(MAX(Fields!F_TYPE.Value))="%",(MAX(Fields!Freight_Charges.Value)/100)* SUM(Round(Fields!QUANTITY.Value * Fields!RATE.Value * (100-Fields!DISCOUNT.Value)/100,2)), MAX(Fields!Freight_Charges.Value))
[Freight_Charges]
Packing Charges=iif(TRIM(MAX(Fields!P_TYPE.Value))="%",(MAX(Fields!Packing.Value)/100)* SUM(Round(Fields!QUANTITY.Value * Fields!RATE.Value * (100-Fields!DISCOUNT.Value)/100,2)), MAX(Fields!Packing.Value))
[Packing_Charges]
Excise Duty
[ED]

The values in the square brackets under the formulae indicate the Label name. In the [ED] field, the formula that I want to use is,

iif(TRIM(MAX(E_TYPE.Value))="%",(MAX(Fields!Excise_Duty)/100)*([Total_Paper] + [Freight_Charges] + [Packing_Charges]),MAX(Fields!Excise_Duty.Value))

How do I use the values in the textboxes [Freight_Charges] and [Packing_Charges] in the textbox [ED]? If I have to copy the entire expression to [ED] field, will the computation become slow?

Kindly request help at the earliest. 
Thanks..


Viewing all articles
Browse latest Browse all 1418

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>