SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

micnie_2020
Posting Yak Master

Malaysia
226 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.

Example:

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.

Regards,
Micheale

visakh16
Very Important crosS Applying yaK Herder

India
52317 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
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.08 seconds. Powered By: Snitz Forums 2000