Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all 10045 articles
Browse latest View live

#Error using IIF and divide by zero

$
0
0

I am getting an error in a calculated field that could potentially divide by zero, even though I'm using an IIF.  The column displays in the report as "#Error".  My expression looks like this:

= IIF(Fields!Qty.Value = 0,

"None", Fields!Hours.Value / Fields!Qty.Value)

I have successfully used this approach with INT fields, but this time the Hours field is a NUMERIC(9,2).  My workaround is to do this:

 IIF(Fields!Qty.Value = 0, "None", IIF(Fields!Qty.Value = 0, 42, Fields!Hours.Value) / Fields!Qty.Value)

I guess the 42 is cast to an INT inside the second IIF and the calculation works.

What's strange is that the division would even be carried out in the event of Qty = 0 from the first IIF, because the expression should just evaluate to "None" and that would be that.

Has anybody run into this problem?  Is my workaround the recommended approach?

-Larry

 


RSReportServerNotActivated error

SSRS Printing and Exporting queries

$
0
0

I using SSRS 2008 to create reports. The reports output are normal tablix reports. I need to know if there are any possible approaches for the below

1. I have 25-40 columns to be displayed is several reports. When exported to PDF (landscape) , how to accommodate all the columns in one page.Currently when exported to PDF, part of the columns are displayed in one page followed by other column data in the next page.

2. How do I manage to print all the columns heading in the same page when the output data is sent to printer?

 

How to a add .rdlc file to a Project/Solution in Visual Studio

$
0
0

Hi,

 

So I have now some reports that I want to add to a project. In the project there are already two kinds of reports that someone add in the past and they don't interest me anymore. Now I want to add the already created Report to the Project. The reports are coded as .rdl files. I converted them to .rdlc, because I read that this important when I want to use them in Visual Studio 2008. Now I don't know how I have to add them. Do somebody how I can do that? Quick reply please.

 

Yours

VisualFighter

Getting Windows USERID in SSRS report

$
0
0

Hi,

 

I'd like to keep track the my reports users. I have stored procedure and I am passing userid to it. It work in development server but in production server it always  gets Production server's generic userid.

The users connect to reporting server by windows authentication. I use  below code to get the user id and pass to the stored procedure.

 

DECLARE @userid varchar(8)
SET              @userid = UPPER ((SELECT     RIGHT(ORIGINAL_LOGIN(), Len(ORIGINAL_LOGIN()) - charindex('\', ORIGINAL_LOGIN()))))

 

is there way to get windows user id in ssrs report?

 

Thanks

Burak


SSRS 2008 R2 data source authentication issue

$
0
0

Hello,

End-users with Browser permissions for the necessary SSRS folders and reports are getting "The permissions denied to user [Windows user] are insufficient for performing this operation (rsAccessDenied)" even though the data source for the report is configured to use "credentials stored securely in the report server" and "Use as Windows credentials when connecting to the data source" is checked. Users who are members of the local admin machine hosting the Report Manager site don't get the error. But users with full control permissions to the SSRS directories, including the config files, do get the error. Obviously, the solution shouldn't entail giving end-users local admin or even full control permissions to the SQL Server SSRS folders.  Moreover, the error only occurs when using Windows credentials but not when using only a database credential, i.e. non Windows credentials.  This workaround doesn't work for me since I'm also using a data source connection to SSAS, which doesn't appear to use database logins - only Windows credentials that are added to roles.

Please advise.

Thanks,

Ben Lezin

 

User!UserID when using custom Authentication in SSRS2012

$
0
0

We are using FormsAuthentication with SSRS2012 for our custom authentication in SSRS2012.

What SSRS code determines User!UserID report expressionwhen using a custom authentication provider?

I ask this because if the FormsAuthCookie.UserName determines the User!UserID value, then I need to use a more unique value than FirstName/LastName when building the forms auth cookie.

thanks

scott

SSRS Subscription Misrun

$
0
0

Hi,

I have a SSRS Report with a subscription scheduled to run quarterly Jan, Apr, Jul, Oct on the 1st of each month.  The report ran this past Feb. 1st.  I'm unsure why? Can this be fixed?

Thank you in advance.


How to add rdlc reports to winform project with out throwing any error

$
0
0

Hi,

I have been trying to resolve this problem in all ways.I am working on win forms in VS 2010 using C#.I have designed 4 rdlc reports in a copy of same projects, and now I have been trying to add those rdlc reports to main project(same name of 2 projects). They are adding but throwing an error as "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) "at 

 private void report10th_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'dataset10th.attendance' table. You can move, or remove it, as needed.
            this.attendanceTableAdapter.Fill(this.dataset10th.attendance);//throws an error here
            // TODO: This line of code loads data into the 'dataset10th.regestration' table. You can move, or remove it, as needed.
            this.regestrationTableAdapter.Fill(this.dataset10th.regestration);
            // TODO: This line of code loads data into the 'dataset10th.tenthclass_marks' table. You can move, or remove it, as needed.
            this.tenthclass_marksTableAdapter.Fill(this.dataset10th.tenthclass_marks);

            //this.reportViewer1.RefreshReport();
        }
please Help me out how to add these RDLC reports to win forms 

Alternating colors for gropus in an SSRS Report

$
0
0
Hi!

   I have a report with a table that has a single grouping.  Each group may have one, or two, or more rows.  I need all the rows in a group to be one color, but I need the color of the entire group to alternate from one group to the next, between gray and white.  I was able to do this in SSRS 2005 using RunningValue, but I can't figure out how to do it in SSRS 2008.

   Again, it really should be simple.  For Group 1, all rows in this group should white; Group 2, all rows in this group should  be gray;  Group 3, all rows in this group should be white, etc.

   To clarify; I am not trying to color alternate rows!!!  I know how to do that using row number.  I am trying to color all the rows in alternate groups.

  My group is called:  grpGroupID, if that helps. 

  What I need is the specific expression and where to place that expression.  That is, do I place the same expression in the detail columns as the groupby column? 

  There is no group header or footer.  The GroupID is the first column on the left and it is the Groupby field of the group.

Group 1   134.89  Bicycle
Group 2   123.12  Helmet
                89.23  gloves
Group 3   768.32  treadmill
                78.09  monitor
Group 4    33.23  step counter
Group 5    19.99  earrphones
                 3.45  energy gum

What I want is for group 1 to be white, both rows in group 2 to be gray, both rows in group 3 to be white, the row in group 4 to be gray, and the two group five rows, white.

In other words,  Odd groups white, even groups gray.

I've tried using the following expression by highlight the entire row and placing it in the Background color property, but the color isn't changing for any row.  It is remaining white.  I have the feeling ths formula isn't meant to control the color at the group level, but the rows within the group somehow, as though the countdistinct isn't really counting the distinct occurrences of the group-by value at the group level or something.

=IIF(RunningValue(Fields!GroupID.value,

CountDistinct, "grpGroupID") Mod 2, "White","Gainsboro")


I'd really appreciate any help anyone can provide. Nothing I've tried is working.

Thanks!

I Published a report on the report server but it's not showing in the internal application we use to access reports

$
0
0

Hi, 

I Published a report on the report server but it's not showing in the internal application we use to access reports. The name of the application we use is called MAMA and this application has access to all the reports on the SQL report server. My email is rogertenn@hotmail.com. my cell phone number is 201-888-7952. 

Thanks. 

@ExecutionTime date format on email subject?

$
0
0

Hi All

 

I have Googled and Googled, but couldn't come up with a solution.

Is it possible to change the date format on @ExecutionTime, using the Report Manager?

 

Currently, the e-mail subject is:                     New Business Month To Date as at @ExecutionTime

When I receive the mail, the subject reads:   New Business Month To Date as at 2010/04/22 03:48:03 PM

I want to make it read like:                            New Business Month To Date April 2010

 

Any help appreciated!

 

Thanks,

Shiv

SSRS find duplicate data fields and highlight

$
0
0

I am creating an SSRS report and I am not sure of the expression to write that would highlight if duplicate names (in a list of names) show up. If anyone could point me in the right direction.

Thanks

Unable to bind a new certificate in SSRS 2008 R2

$
0
0

Hi

I've had a SSL wildcard certificate successfully in use, unless it had to be replaced because of its age.

Now I've imported a new certificate, but unfortunately I'm unable to set it up in the SSRS Configuration Manager Console (Web Service URL / Report Manager URL), because "We were unable to create the certificate binding". 

 

Here is the Error Message: 

 

Microsoft.ReportingServices.WmiProvider.WMIProviderException: An unknown error has occurred in the WMI Provider. Error Code 80070520

 ---> System.Runtime.InteropServices.COMException (0x80070520): A specified logon session does not exist. It may already have been terminated. (Exception from HRESULT: 0x80070520)

   --- End of inner exception stack trace ---

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)

   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.CreateSSLCertificateBinding(String application, String certificateHash, String ipAddress, Int32 port)

   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.CreateSSLCertificateBinding(UrlApplication app, String certificateHash, String ipAddress, Int32 port)

 

I've also deleted the existing bond in the netsh console with "netsh>http delete sslcert ipport=0.0.0.0:443", but this still doesn't fix the issue.

Thanks in advance

ssrs number format to percentage issue

$
0
0

Hi All,

I have a column AvgCost in dataset in SSRS. This column have values 77.00,74.00,59.00 and so on...

Now my requirement is to display 77%,74%,59%... in ssrs chart. So for this i went to textbox properties,Number, percentage --remove decimal places to 0 but now its showing 7700%, 7400% and 5900% on the chart, which is wrong.

can some one help me on this. 

Thanks,

Kalyan


Audit report execution?

$
0
0

Is there an extension for auditing report execution?  It would be nice to record that user ABC executed XYZ at such and such DateTime.

thanks

scott

SSRS2012 : User '' does not have required permissions

$
0
0

I finished implementing the Microsoft SSRS2012 security/authorization extension sample as documented here.

The Login seems to work but then right after login, I get authorization error on http://devsql3/Reports/Pages/Folder.aspx

"User '' does not have required permissions. Verify that sufficient permissions have been granted and Windows User Account Control (UAC) restrictions have been addressed. "

class Folder Page

.

.

private void Page_Init(object sender, EventArgs e)

{

.

.

  if (!base.RSUser.HasPermission("Read Properties")) 
  {
                if (flag)
                {
                    throw new InsufficientPermissionsToRoot(this.Page.User.Identity.Name);
                }
                throw new AccessDeniedException(this.Page.User.Identity.Name);
   }

 

"

I can look at Identity.Name but it is empty in code as well as the error message.  It's like there is a problem with the FormsAuth.  How do you troubleshoot this issue?

thanks

SSRS : Export to Excel with Parent Child groups (Drill Down Effect) Problem

$
0
0

Hi All,

I am facing one problem.I have created Parent child groups and there totals in the table report as shown in the below figure. The functionality is working fine in preview.


But when i am trying to export to excel the drill down effect is not proper , its coming one level Up as shown in the below figure:


PLease let me know what is wrong in this.I am using office 2007.


*Regards*
*Samay Shrivastava*
*Please mark it as Answered if it answered your question or mark it as Helpful if it helped you solve your problem.*

Concatenation operators in SSRS?

$
0
0

Hi,

Is both + and & operator used for concatenation in SSRS? If so what is the difference between the usage of the two? When to use one over the other?

Regards


Regards

How to display date time in Parameters?

$
0
0

Hi,

I have 2 date time parameters From Date andd To Date. They are displayed as below

From Date  02/01/2015

To Date  02/01/2015

What i want is when From Date and To Date are same, then the To Date should be displayed as below

To Date  02/01/2015  23:59.59

Can you sugggest how to accompish this?

Regards


Regards

Viewing all 10045 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>