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
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 devide sum to row
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nord
Posting Yak Master

122 Posts

Posted - 02/06/2013 :  10:44:08  Show Profile  Reply with Quote
Hi,
i have matrix like
1 2 3 4
2 3 2 4
1 2 3 4
sum 12 20 27 15
how can devide sum/row=%
Thanks

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/06/2013 :  11:08:11  Show Profile  Reply with Quote
is sum part of same resultset or is it summary row in ssrs report?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

nord
Posting Yak Master

122 Posts

Posted - 02/06/2013 :  11:11:43  Show Profile  Reply with Quote
is it summary row in ssrs report
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/06/2013 :  11:19:24  Show Profile  Reply with Quote
SUM(Fields!Yourfieldname.value,"Table Name")/Fields!YourField.value

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

nord
Posting Yak Master

122 Posts

Posted - 02/06/2013 :  11:24:49  Show Profile  Reply with Quote
Thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/06/2013 :  11:29:19  Show Profile  Reply with Quote
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

nord
Posting Yak Master

122 Posts

Posted - 02/11/2013 :  10:34:57  Show Profile  Reply with Quote
Hi,
How I can in same example make ­runningvalue?
thanks
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 02/11/2013 :  10:37:52  Show Profile  Reply with Quote
=RunningValue(Fields!Yourfieldvalue.Value, Sum, "table name")/RunningValue(Fields!Yourfieldvalue.Value, Sum,Nothing)

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

nord
Posting Yak Master

122 Posts

Posted - 02/11/2013 :  10:49:23  Show Profile  Reply with Quote
I wrote like that:
=RunningValue(Fields!credit_complet_qty,Sum,Nothing)/RunningValue(Fields!credit_complet_qty.Value,Sum,"cal1")
but in every colimn result is:error....
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3578 Posts

Posted - 02/11/2013 :  12:09:45  Show Profile  Reply with Quote
Either one or the other as shown below?:
=Fields!credit_complet_qty.Value/RunningValue(Fields!credit_complet_qty.Value,Sum,"cal1")

=RunningValue(Fields!credit_complet_qty.Value,Sum,"cal1")/SUM(Fields!credit_complet_qty.Value,"cal1")
Go to Top of Page

nord
Posting Yak Master

122 Posts

Posted - 02/11/2013 :  13:36:51  Show Profile  Reply with Quote
thanks,second one perfect!!!
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3578 Posts

Posted - 02/11/2013 :  19:01:18  Show Profile  Reply with Quote
You are very welcome - glad to help.
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.06 seconds. Powered By: Snitz Forums 2000