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

Export Time column to Excel

$
0
0

I know SSRS doesn't really have a time data type outside of the datetime type, but I'm trying to have a time column which exports to excel as a time data type.  I've tried a few different ways, but the only way that seems to convert over is having the textbox expression =TimeValue("00:30:00").  The problem is this creates a datetime and displays the date portion.  I've tried using custom formats of hh:mm:ss, and those look fine while running the report, but excel sees it as a negative datetime which produces a malformed value.

To clarify by example, I have a time 00:30:00 which exists in a textbox on the report that I want to export to excel as 00:30:00 but as a data type of Time so that if someone were to write excel formulas based off of those cells, it would be able to perform time-based arithmetic on them.

Any ideas?


Setting up SSRS and Report Manager and error "User does not have required permissions"

$
0
0

So We tried rolling out our forst test report. Added Report Manager and Database Security to a couple of Active Directory Groups. But when a couple of our business, they attempted getting to the test report and got the error message...

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

I did indeed Google the error and saw that Internet Explorer needs to be Run as administrator

Sooooo does that mean that any Report Manager User has to follow the procedure to run Internet Explorer as an Administrator? If so, is this a one-time switch? So they do it once and won't have to do it again unless their client machine changes?

Or rather do I have to instruct them to

      • <Click> Start
      • Type UAC
      • <Click>on Change User Account Control settings
      • Within the User Account Control Settings window, slide down the Notify bar toNever Notify
      • Restart System

    I also saw this...

    UAC is causing the error, from http://support.microsoft.com/kb/934164.

    1. Configure the report server for local administration. To access the report server and Report Manager locally, follow these steps:
    2. Start Windows Internet Explorer.
    3. On the Tools menu, click Internet Options.
    4. Click Security.
    5. Click Trusted Sites.
    6. Click Sites.
    7. Under Add this Web site to the zone, type http://<var>ServerName</var>. If you are not using HTTPS for the default site, click to clear the Require server certification (https:) for all sites in this zone check box.
    8. Click Add.
    9. Repeat step 7f and step 7g to add the http://localhost URL, and then click Close.
    10. Note This step enables you to start Internet Explorer and open either the localhost or the network computer name of the server for both the Report Server application and the Report Manager application.
    11. Create role assignments that explicitly grant you access together with full permissions. To do this, follow these steps:
    12. Start Internet Explorer together with the Run as administrator option. To do this, click Start, clickAll Programs, right-click Internet Explorer, and then click Run as administrator.
        • Open Report Manager. By default, the Report Manager URL is http://<var>ServerName</var>/reports. 

        QR CODE IN CRYSTAL REPORT

        $
        0
        0

        i am not able to generate QR code in crystal report.

        how to generate qr code in crystal report

         

        SSRS runtime error - The specified operation is not valid

        $
        0
        0

        Hi all,

        with the following code I get the error message "The specified operation is not valid" if I set the Parameter 0

        =(IIF(Parameters!Gruppierung.Value =

        1,

        sum((lookup(Fields!REGION.Value + Fields!Zeitvergleich.Value,

                   Fields!REGION.Value + Fields!Zeitvergleich.Value,

          CDbl(Fields!S.Value),

        "KD_ANZ_GES_Gruppierung"))),

        sum(cdbl(

        123456))

           ))

        If I set Parameter 1 it calculates correctly. I get the right results for the corresponting columns for a Matrix. But if I choose Parameter 0 the expression must sum(123456) for all columns in the Matrix or not? Instead i get the error. Please help! Thanks KirinhoKey

        Space Issue at "P.O. Box 29429" on 2016 reportserver

        $
        0
        0

        Hello,

        We are using 2016 reportserver to generate reports.  we are facing space issue between "P.O. Box 29429" while seeing it on PDF export. Please check attached export. We are unable to see the space between "Box and 29429" on pdf export. But there is a space between them while i am moving the cursor to that place. There is a issue in visibility.

        can anyone suggest that what might be the issue..?

        Thanks,


        S surendra Chowdary

        LOOP Through Databases & List distinct users

        $
        0
        0

        Hello, 

        i have a SQL instance with the databases as shown bellow:

        Now i want to loop through those databases, and retrieve all users that can access them, there is a standard table called FilteredSystemUser for each database.

        I did the query below but it is not working:

        DECLARE @command VARCHAR(1000)
        
        SELECT @command = 'IF ''?''  IN(''AAG'', ''ABY'', ''AFg'', ''CDK_MSCRM'', ''AFK'', ''AIB'') BEGIN USE ? EXEC(
        SELECT	domainname,
        		fullname,
        		title,
        		businessunitidname,
        		address1_city,
        		createdon,
        		isdisabledname 
        FROM FilteredSystemUser
        WHERE isdisabledname = 'Enabled') END'
        
        EXEC sp_MSforeachdb @command
        

        Please help, all i want is to get those users only in  the databases looped, if i use the query on one database it works well. But i wanna do in all to avoid manual work.

        Please assist


        Rabelani Netshifhire

        How to determine cause of "The permissions granted to user 'domain\user' are insufficient for performing this operation. (rsAccessDenied) "

        $
        0
        0

        I have been reading about this problem almost non-stop for 2+ days, and trying every suggested "fix", and none work. Clearly, the approach of "change this and see if it fixes the problem" is not working (as it rarely does for black-box problems with many variables).

        So rather than experimenting endlessly with changes to the configuration, how can I determine the underlying cause? In other words, "breakpoint" at the point of the exception in order to determine what specific permission is insufficient to access which specific resource.  

        Given this entry in the log:

        library!ReportServer_0-2!2798!08/09/2012-08:32:07:: Call to GetItemTypeAction(/).
        library!ReportServer_0-2!2798!08/09/2012-08:32:07:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: ,  Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'domain\user' are insufficient for performing this operation.;

        ... how do I determine what GetItemTypeAction is complaining about????

        DC 

        SSRS 2017 is stuck in EVALUATION MODE and has stopped working even though we upgraded SQL to a purchased version of Enterprise

        $
        0
        0
        SSRS 2017 has stopped working. I noticed this because we got 503 unavailable notice on the browsers when trying to access the reports.  I see that in configuration manager it states it is in evaluation mode still, even though SQL Server was purchased and upgraded though the upgrade steps to Enterprise.  The rest of SQL is working just fine.  When I try to re-install SSRS after re-downloading it, I get a message that I can't because the Evaluation period is over.  So I'm stuck.  How do you get SSRS out of evaluation mode?

        SSRS Dashboard Help

        $
        0
        0

        Hi ,

           I am assigned to create a dashboard for program participation based on the below table.

        Programs      Description     participation  AvgSales     CustomerScore

        AX                        blah Blah       2000            100                   9

        AY                        bvv  Checl     1000            100                   9.8

        AZ                        blah Blah       5100             7                     9.4

        I have around 20 Programs and need to create dashboard for each program showing the sales and participation. The requirement is the client will run the report and print them . Each program dashboard should be printed in a single page. So If the client click print then 20 programs should be printed in 20 different pages . The client will always Print the report and not worried about how it looks in the report browser.

        What I am doing now is .. Creating 1 report with 20 rectangles in it  and added page break after each  rectangle.

        Added 1 dataset for each program (total 20 datasets) and added the Program details inside the corresponding rectangle.

        The report is working now as expected.

        My question is there any other better way to do this ?  Because if I need to change or add anything in the dashboard then I have to make changes in 20 dashboards. Also 20 dataset seems too much.

        Thanks in advance

        Sp

        SSRS 2012,2014 Excel Export Time format problem

        $
        0
        0

        Hi All,

        I have some Time-typed output columns in different RS reports and in SSRS try to export it to Excel, but the Excel output file forget the original Time type, so Excel users cannot deal with aggregations, macros as like with a normal time-typed excel data.

        Its only worked after having applied manually in excel number format.

        An example in my sp:

        create table #t (... 'Output_Col' Time ...)

        select '0:12:34' as 'Output_Col' from #t

        I tried to apply in rdl textbox formatting all the ways, but time-types disappeared after exporting to excel (there are only string format data).

        Is there any solution in SSRS 2012/2014? Or (only) above?

        thank you:

        Mike

        SSRS read text file in file server, user permission.

        $
        0
        0

        Hi All,

        Could someone please tell me what is the default user that is used when I connect from report server to file server to read text file using OleDB connection.

        I think it is permission issue which I do not know which user to grant permission to. Reason being, when I grant read/write permission to Everyone in the root folder, I can read the text file from report. But when I grant read/write permission to domain user or local user (refer to below) , I am getting error message "

        • The
          Microsoft Access database engine cannot open or write to the file
          'filenA.txt'. It is already opened exclusively by
          another user, or you need permission to view and write its data.

        ***There is no firewall issue here

        File server ip: 192.168.12.xx

        Report server ip: 192.168.12.xx

        ***

        I had tried the following but non of the steps work for me:

        1) domain user

        i) create a domain user and store the credentials in the report.

        ii) share the root folder and sub folder in file server to the domain user.

        iii) grant read/write permission on both root folder and sub folder in file server to the domain user.

        2) local user

        i) create a local user in the file server, and store the credentials in the report.

        ii) create a local user with same name and password as above in report server.

        iii) share the root folder and sub folder in file server to the local user in file server.

        iv) grant read/write permission on both root folder and sub folder in file server to the local user.

        Thanks in advance.

        SSRS Sub Reports

        $
        0
        0

        Hi,

        I have created a sub report as follows:

        As seen in the above image there are four parameters involved in my sub report.

        I am fetching the start time and end time dates with the help of start_date and end_date.

        Start date and end date are nothing but my columns of database.

        I need to populate the values in report as per the start time and end time which will be changing dynamically as per the selection of start date and end date by the user.

        Example:

        Start Time                     End Time                       Values

        28-MAR-18 20:59:00.0   29-MAR-18 10:07:00.0   09.50

        28-MAR-18 22:59:00.0   29-MAR-18 10:08:00.0   12.50

        Please help me in achieving the above output!

        Thanks in advance!

        HTTP Status 503: Service Unavailalbe Error in SSRS

        $
        0
        0

        Hello -

        We are using SSRS on SQL Server 2008 R2 we can access our reports via the Web Service URLhttps://tfs.rosetta.com:443/ReportServer

        But cannot access the reports from the Reports Manager URL http://tfs.rosetta.com:80/Reports we get the HTTP status 503: Serive Unavailable. I attached a screenshot of the error.

        I have read many post and have tried to disable IPv6, reset IIS and I'm at a lost of what could be causing this issue. Any help or insight would be greatly appreciated.

        Regards,

        David

        SSRS reports on different workbooks

        $
        0
        0

        In my SSRS project I have 5 reports not related to each other in any way. I want these reports to be exported on different tabs of a single workbook. I heard that it can be done using pagename property. Can someone please explain how?

        Thanks,

        Deepak

        Not able to view reports in remote console of SCCM 1702

        $
        0
        0

        Hi,

        I have installed remote console of SCCM 1702 CAS with Security scope and roles added to user.

        I am able to open remote console but not able to see reports under report tab.

        I checked user privileges in report server and security roles also.

        Please update any solution to run reports from remote console.

        Thank you 


        Expression to choose value based on field type

        $
        0
        0

        I want to set a field value based on the type of related fields the information is coming from. For example, I have two fields ('activity type' and 'case event type'). Activity Type is a standard CRM field and case event type is a custom entity. I want to display the Case Event 'Name' if the activity type = Case Event", otherwise I want to display the activity type (the standard CRM activity types). So far I have:

        =IIF(First(Fields!activitytypecodename.Value = "Case Event", (Fields!caseevent_name.Value), Fields!activitytypecodename.Value))

        Here is the error code I am getting: 

        The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a dataset.
        ----------------------------
        The definition of the report 'Main Report' is invalid.
        ----------------------------
        An error occurred during local report processing.

        Drill through a report by calling the report name in Action expression

        $
        0
        0

        Hi,

        I am trying to drill through a sub report from the main report of a scatter chart, based on a condition in Action.

        The expression I am using is

        =IIF(Fields!CustomerID.Color="Red", Globals!ReportName="CustomerDetails", "")

        if the color of the data point is red, it should allow me to drill through another report called CustomerDetails else nothing("") should happen.

        It doesn't seem to be working.

        Please suggest.

        Regards

        Scatter chart with upper and lower limits and a standard line

        $
        0
        0

        Hi All,

        I have a requirement that i need to show the data points in a scatter plot and there should be a standard line, upper and a lower bound. I am unable to combine both. 

        Please suggest

        

         


        Total amount by Description

        $
        0
        0

        Hell

        How I can group this table in order to have all the description together by department 410 and description.

        Row Visibility and Export

        $
        0
        0

        In SSRS report, we would like to show only top 10 rows but in export it should show all rows.

        As of now if we use row visiblity or filter option it shows top 10 rows in report as well as even after export.

        Please let us know if it is feasible or not . If feasible, how we can do it.


        Prashant Patil


        Viewing all 10045 articles
        Browse latest View live