Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am creating an report and I want to remove duplicate until sum value equal to my text box value in ReportViewer (Rdlc)
it looks like this

CompanyID      FeeGoal
  1000           50
  1000           50
  1000           200
  2000           400
  2000           400


and I hope this looks like this

CompanyID      FeeGoal
  1000           300
  2000           800


What I have tried:

I tried to use
=Count(Fields!CompanyID.Value)
Posted
Updated 22-Oct-20 21:53pm
v2
Comments
CHill60 30-Oct-20 5:20am    
Based on your expected results you are not trying to remove duplicates at all, you are SUMMming the values across GROUPs. Use the bits in CAPITALs to guide your research

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