Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 Development Tools
 Reporting Services Development
 Matrix Tablix SubTotal
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

232 Posts

Posted - 11/01/2012 :  07:26:32  Show Profile  Reply with Quote
Hi All,

I have Master & Details Table return value for each record having 60 times.

Now, if i sum(Field1). I will get the Price * 60. How can divide it based on field called NoRecord.

Or How can i add sum the price with only distinct to Type & ID.


Type AID Price Desc1 Desc2 Desc3
[+]COM 1 1000 Test A TestB TestC
3000 << Details: Got 3 Desc. I just want the value return 1000.

Please advise.

Thank you.


Very Important crosS Applying yaK Herder

52326 Posts

Posted - 11/01/2012 :  09:54:13  Show Profile  Reply with Quote
you need to bring an extra field (may be bit of row sequence number) from query for that and inside report expression you need to add a conditional logic based on IIF() function to get only unqiue values and SUM on that

for more details post some sample data and your expected output out of it.

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000