Click here to Skip to main content
15,894,017 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
there are two matrix in rdlc report.
in one matrix show brand wise(say,apple,microsft) sell quantity.
in another matrix show brand wise purchase quantity.
Now I want to show in another matrix the balance(purchase-sell) quantity
How Can I do that

What I have tried:

In Third Matrix
C#
=Sum(Fields!sell.Value, "selldataset")
-Sum(Fields!purchase.Value, "purchasedataset")
Posted
Updated 15-Oct-16 23:49pm

1 solution

You forgot to mention what's wrong with your expression, nevertheless your expression seems to be correct. Due to the scope of expression, a result may differ.

I'd suggest to read these articles:
Calculating Totals and Other Aggregates (Reporting Services)[^]
Expression Scope for Totals, Aggregates, and Built-in Collections (Report Builder and SSRS)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900