.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

SSRS calculation problems

Posted By:      Posted Date: October 16, 2010    Points: 0   Category :Sql Server
 

Hello Experts,
I have a SSRS reports that displays weekly sales and Store inventory levels. In this report, I have used a calculated member named "Branch Stock Value". And its expression is:

Fields!Store_Stock_Level.Value *(Fields!PS.Value - ((Fields!PS.Value * Fields!VAT_Rate.Value)/100))


Now, I would like to use another calculated member that uses this BranchStockValue member. My desires calculated member expression is:

BranchStockValue / SalesValue

I get divide by zero or other null errors. But the final purposed result is really very easy.

For example for the first line Branch Week Cover value should be 12544.36 / 1656.39 =  7.57

 

Please Help




View Complete Post


More Related Resource Links

SSRS 2008 R2 and sharepoint 2007 report builder problems

  

I upgraded our enterprise sql server 2008 to sql server 2008 r2 last weekend.  Along with this i installed the report builder 3.0 on the servers as well and the updated ssrs add in for sharepoint.  The upgrade went fine, no errors that i could find.  The problem is now when i go to a library that has the report builder content type enabled and click report builder report under new it does not load report builder 3.0.

I updated the custom report builder url in central administration from /_vti_bin/ReportBuilder/ReportBuilder_2_0_0_0.application to /_vti_bin/ReportBuilder/ReportBuilder_3_0_0_0.application

however when i do click the new report builder report it kicks me over to http://company.com/ReportServer_MossEnt  which itemizes out each individual sharepoint site in the farm.

Is the integration of ssrs 2008 r2, sharepoint 2007 and report builder 3.0 work?  did i install the wrong version of the report builder add in?  The above is the only problem i am having now.

all servers are server 2008, 64 bit and moss 2007 enterprise with sp2 & april 2010 cu


SSRS 2008 Sum Calculation in text box

  
Hi,  Any one pls tell me how to calculate sum of text box values in SSRS 2008. (sum(Fields!Total_Days.Value, "DS_Monthday") - sum(Fields!Weekends.Value,  "DS_Weekends")) - (datediff("d",DATEADD("d",-(DAY(Today())-1),Today()),Today()))   * (Count(Fields!ClientID.Value, "DS_AVGRate")/Count(Fields!DimGPClientID.Value)) +  count(Fields!ClientID.Value, "DS_AVGRate"),Count(Fields!DimGPClientID.Value))   i want to calculate sum of the above expression in text box. I have tried it is showingerror  Aggregate function will not support in text box Pls help me to show the whole sum of above expression in text box only. Thanks in advance. Regards, Abdul2010

Problems passing parameters to SSRS report from ASP.Net web page

  
I have a web page that displays some data.   When they click a submit button, I want to run a report.  But I would like to pass the start year/month and end year/month values that the user already entered on the web page to the report.  Here is what my url looks like when the report is displayed: http://xyzserver/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fDevicesAllNew&rs:Command=Render&StartYYMM=201007&EndYYMM=201008 But my report displays the 2 textboxes for my StartYYMM and EndYYMM parameters as empty.  What am I doing wrong?  I did a google search and I saw something about using ReportServer instead of ReportManager.  I notice at the top of the browser when I run my report, it reads "Report Manager - Windows Internet Explorer".  Is this correct? Bob     Bob

Problems with SSRS 2008 and SSL

  
I've managed to run into a pretty specific problem while setting up SSL on SSRS 2008.  I'm using a self-signed certificate for testing purposes, and just finished reinstalling Reporting Services to clear out any problems I introduced in earlier flailing about. If I set up SSL only connections for the Web Service URL and Report Manager URL, the ReportServer address works fine with https, but the Reports address returns this error: The remote name could not be resolved: <server url> However, if I then set up an http address for the Web Service URL, they both work fine. Going into the reportserver.config file at this point, I can switch the SecureConnectionLevel parameter to a value of 2, and the Reports address again fails with the same error. I have put an address in the URLRoot section of reportserver.config, but whatever I put does not seem to have an effect on this problem.  Also, I'm not trying to do anything with the reports, only navigate to the directory, so the URLRoot section should not have any impact. The URLReservations section of reportserver.config looks like this (I've replaced the server URL and taken out the AccountSID and AccountName fields):     <URLReservations>         <Application>             <Name>ReportServerWebService<

SSRS permission problems

  
Good day. I have some problems with permissions in ssrs 2005. 1) I have created report in BIDS. Report consist of some fields, some of them have subreports. I can open project with no problems(local admin) but other user, which i give permission to view it, cant view parent report, but can view subreport. I noticed, that users can open simple reports and cant open reports with subreports. Its shows next error: An error has occurred during report processing. (rsProcessingAborted) Cannot create a connection to data source . (rsErrorOpeningConnection) For more information about this error navigate to the report server on the local server machine, or enable remote errors In event viewer on server i can see Failure Audit event with "login failed "username"".   2)Second problem is that i cant publish reports from BIDS to report server(im developing it on server) when all other users of server can.     Will be gratefull for any help.

Problems with SSRS 2008 Install when configuring a back-end database on a SQL Server 2008 R2 environ

  
We are tyring to configure SQL Server Reporting Services (SSRS 2008) not the R2 version with a SQL Server 2008 R2 version of database. We are facing error when the configuration manager within SSRS tries to execute its scripts against the database. Do you think that SSRS 2008 may have trouble using a SQL Server 2008 R2 version as the back-end? Also, what kind of permissions does the ID installing SSRS needs to have on the SQL Server database ?  Not much is available in the documenation or online.

Problems setting up SSL on SSRS 2008

  
I've managed to run into a pretty specific problem while setting up SSL on SSRS 2008.  I'm using a self-signed certificate for testing purposes, and just finished reinstalling Reporting Services to clear out any problems I introduced in earlier flailing about. If I set up SSL only connections for the Web Service URL and Report Manager URL, the ReportServer address works fine with https, but the Reports address returns this error: The remote name could not be resolved: <server url> However, if I then set up an http address for the Web Service URL, they both work fine. Going into the reportserver.config file at this point, I can switch the SecureConnectionLevel parameter to a value of 2, and the Reports address again fails with the same error. I have put an address in the URLRoot section of reportserver.config, but whatever I put does not seem to have an effect on this problem.  Also, I'm not trying to do anything with the reports, only navigate to the directory, so the URLRoot section should not have any impact. The URLReservations section of reportserver.config looks like this (I've replaced the server URL and taken out the AccountSID and AccountName fields):     <URLReservations>         <Application>             <Name&g

SSAS - calculation of ssrs report should be calculated before calculation in MDX script

  
Hi All I have: - A calculated member defined in an mdx query of an SSRS report (using the aggregate function). - A calculated member defined in the MDX Script of the cube The calculated member of the cube calculates a ratio. What we should achieve is the ratio of the aggregated members (defined in the report) and not the aggregation of the ratios. I thought that it would be automatically enforced by: http://msdn.microsoft.com/en-us/library/ms145539.aspx :"The exception to this precedence is the Aggregate function. Calculated members with the Aggregate function have a lower solve order than any intersecting calculated measure." I tried to play with the solve_order of the two calculated members (defining explicitly a lower solve_order for the aggregation defined in the report), but the calculation of the cubes is always executed first => I end up with the aggregation of the ratios. Are calculations defined in the MDX script always executed first? This doesn't seem logical to me.. Thanks a lot for your help. Regards Stefan    

SSRS 2008 Cascading Parameter Problems

  

We are having a problem with dependent parameters.  Has anyone see something like this with ssrs 2008?  It is a show stopper for us.  After everything tested out ok (or with only minor gui bugs), we set a date to roll this to production.  With this recent discovery, we are unable to move forward until it is resolved.  We didn't notice it since there are a small number of our 400 some reports that do this type of thing.  Unfortunately, they are the most important in our organization.  These worked without a problem in 2005.

Sample below:

 ReportMode (depends on what is selected in RunAsUser)

Avail: ID from ReportModeDataSet

Default: ID from ReportModeDataSet

 Location (depends on what is selected in ReportMode)

Avail: ID from LocationDataSet

De

SSRS Chart calculation displaying future values

  

I'm new to SSRS and especially to the chart features.  I currently have a line graph chart where the data points are based on a % calculation for each month of a year.  The prior years are all displaying correctly. 

The current year however shows the correct values to the present date, but rather than stopping it continues the line to the end of the chart showing the most recent value.

What can I change so that it will stop the line at the most recent data point?

The calcuation being used is "=1-(Fields!ID2009_Backordered_Lines.Value)/Sum(Fields!ID2009_Fillable_Lines.Value)"

Any insight would be appreciated!

 

 

 

 

 

 


What factors into the calculation of the width of modal dialog windows? (problems with custom master

  

I have a fairly customized masterpage and while the modal dialog boxes seem fine in Chrome and IE, they aren't rendering wide enough in firefox causing them to need to be horizontally scrolled.

I've figured out that it's not my stylesheet because when I deactivate it the problem still remains. When I try going back to v4.master it also works fine, so I'm mostly positive it's my masterpage.

I've tried going through and removing various customizations but nothing seems to resolve the issue. I'm thinking it may be related to the ribbon which I have detached from the top of the page.

I'm hoping if someone knows how the width of the modal window is calculated I might be able to track down the bug.

I wish I could just set the modal windows to use a different masterpage all together or have more easily accessible css. Maybe Sharepoint 2012? :)


SSRS 2008 R2 and Sharepoint 2010 - performance problems

  

Hi all,

I'm currently in a DWH project using SSRS 2008 R2 x64 in Sharepoint Integrated mode along with Sharepoint 2010, and we're seeing massive performance problems even though traffic on the server is at a bare minimum. We're in development with a maximum of a few users online at any given time and the server itself isn't doing a whole lot...cpu is usually < 20%. We have timed the database queries and 90% of them are taking less than a second to execute while reports takes anywhere from 5 to 30 seconds to load (some heavier reports can occasionally take a lot longer). I am simply unable to get anything to load in less than 5 seconds, even the simples grid from a SELECT TOP 5 * FROM table query takes this long.

The server setup is suboptimal as SQL Server, Reporting Services and Sharepoint are all running on the same virtual machine but with the minimal amount of traffic we have this shouldn't really be a problem. The server is a Win 2008 x64 Datacenter with 4 CPU's and 16GB RAM.

A standard sharepoint page that gets data from the database is returned in milliseconds...why doesn't reporting services do the same? What can I do to increase performance?


Lumbago
www.thefirstsql.com

Yield to Maturity Calculation in SSRS Report

  

Hi

We are migrating a report from Crytal to SSRS 2008. It has a Yield function(Calculates Yield to maturity). Is there any equivalent in SSRS 2008. or alternatively is there any way to calculate in SSRS. Even Microsoft Excel has this Yield Function.

Any help is greatly appreciated.


Top .NET Performance Problems and how to avoid them

  
Every time I work with one of our .NET customers to help them with managing their application performance I come across the same problems as seen with other clients before: lots of ADO.NET queries, many hidden exceptions in core or 3rd party .NET libraries, slow 3rd party components, inefficient custom code

AGE CALCULATION IN YEARS AND MONTHS

  
How to calculate childs age,but when i enter childs age as '03/27/2007' it returns 3 years where as actual age is 2 yr 11 months

calculation, field and map traverse adjustment, and coordinate transformation

  
Free Pocket PC land surveying software -- COGO calculation, field and map traverse adjustment, and coordinate transformation -- for students and professionals.

Visual Studio 2008 Memory problems

  

My memory in task manager reaches about 900,000K  and I don't know why it does this. Definately slows everything down, especially when I rebuild my tableAdapters, takes about 30 seconds sometimes to rebuild the project.


Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend