Quantcast
Channel: SQL Server Reporting Services, Power View 포럼
Viewing all 24955 articles
Browse latest View live

Installed SSRS without serial number

$
0
0

Installed SSRS without serial numbe which is now evaluation copy for 180 days.

Now I have obtained the serial number how can I the SN to the installation?

Many thanks


How to get the right result about average value for weekdays expression in my ssrs report?

$
0
0

I have column about average values which I receive the right result. In addition, I have total column below for this column. 
For example, I want to divide average values / total value. 
For example, I have range of dates between 10.06.2019 and 17.06.19

Example values from my report :

Avg Weekdays ( Hour 00:00 ) - 2,8 Total : 443.2

Expected result is : 0,63% . I received 2.8% - false .

https://i.imgur.com/hmo53BE.png

This is my code below.
With Saturdays and Sundays I don't have problems.

These are avg values:

=sum(cdec(IIF(Weekday(Fields!DATE_YYYYMMDD.Value,2)<6, 
    iif(count(iif(weekday(Fields!DATE_YYYYMMDD.Value,2)<6
,Fields!N_ENTERED.Value,nothing))=0,
            0,
    Fields!N_ENTERED.Value/iif(count(iif(weekday(Fields!DATE_YYYYMMDD.Value,2)<6
,Fields!N_ENTERED.Value,nothing))=0,
            1,
                count(iif(weekday(Fields!DATE_YYYYMMDD.Value,2)<6
,Fields!N_ENTERED.Value,nothing))))
,0)))

/

This is total below:

Sum(IIf(Weekday(Fields!DATE_YYYYMMDD.Value,2)<6
,CDBL(Fields!N_ENTERED.Value),CDBL(0)))/(code.getWeekDaysCount(Parameters!From_date.Value,Parameters!To_date.Value))

I expected 0,63% , but the output is 2.8%,which is wrong.

How to Create Parameters in Report Body Level

$
0
0

Hi,

Is there any possibility to create parameters in body level.

As general all parameters are header level only, but high visualizations will come when selection of  parameters are in body level like  E-Commerce site  (Online shopping) selection drop down kind of thing.

Please share me if any possibility available in SSRS any version ? 

Thanks,

Mayuri

Problem with default date format SSRS 2017

$
0
0

Hello everyone,

I have problem with default date picker format in properties field. As i know Reporting Services should import date format from Windows short date.

I need to set default date format to YYYY-MM-dd, but default for my region(poland) format is dd.MM.yyyy, i change it to YYYY-MM-dd, but it doesn`t work.... 

I had tried change Culture in ReportViewer.aspx to "en-CA", becouse they have correct date format (yyyy-MM-dd) and it`s work for few reports, but when report have date format default value: =DateAdd("m",-3,Today()) i still get old date format what can you see at screen below:

I really need help..

if someone need i can tell more information

best regards,
Patrick


How to Create SSRS Table Scroll Bar

$
0
0
Please help me how to create table Scroll bar in table level

Automate branding process

$
0
0

Hi,

we use reporting services 2016. We customized our web portal with branding package.

I'd like to automate the process of uploading the it to the server. Is there any powershell or API? If not, info about physical storage place may be helpful...

Thanks 

Lubos 

Column Chart - With Column Headers as X-Axis Labels

$
0
0

Hi Everyone,

I have a dataset that looks like this.

Column1  Column2 Column3

60             40           180

 

I want to create a column chart for these values, that has the headers of my columns as the x-axis labels.  I haven't worked much w/ SSRS charts and I'm struggling to get this to work.  Is it possible for SSRS to use the column names (ex. Column1, Column2, Column3) as the X-axis labels in a column chart?

Thanks,

Jim

SSRS Expression help

$
0
0

Hello I have a table below . The last column has complex calculation. Its easy in excel but I want to replicate the same in my report and show a line chart. 

Row F3  has a different formula. From row F4 it accepts the value from F3 . I want to show column F and column B in a chart including calculations.  



AAny help will be appreciated


HOW to enable HSTS in SSRS SQL Server 2014

$
0
0

I've seen a lot of information on enabling HSTS in SSRS 2014, but nothing concise that indicates where the code needs to go.

I've tried plugging it into the web.config for the instance, the RS.config, etc and I can't seem to get it to work.  It's either disregarded, or breaks SSRS.

Is anybody willing to hold my hand and tell me precisely where I need to insert the code in my configuration to get HSTS to work?  It is a hard requirement for me and I'm finding my research to be circular and/or dead-ends.

Much appreciated - this is my first post in the SQL world ;

Tablix Data

$
0
0

Hi,

I have a tablix that I want to include all of the WorkOrder items that are in StatusCode 7 or 8. BUT, if they also have another StatusCode item, include those lines too.....only if they have a 7 or 8.

I can't wrap my mind around how to go about doing this today. In the query? A filter in the report?

Sample data set:

Thanks!


I hear and I forget. I see and I remember. I do and I understand.


Issue with Report viewer control V14

$
0
0

Hi,

We have an application which uses Report Viewer control 13 (which is working with some performance issues ).

Now we are upgrading it to the V 14. But we are stuck as the below issue.

Server Error in '/' Application.

Value cannot be null or empty. Parameter name: elementID

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.ArgumentException: Value cannot be null or empty. Parameter name: elementIDSource Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace: 

[ArgumentException: Value cannot be null or empty.

Parameter name: elementID]

   System.Web.UI.ScriptComponentDescriptor..ctor(String type, String elementID) +109

   Microsoft.Reporting.WebForms.ReportViewerClientScript.SetViewerInfo(ReportViewer viewer, String reportAreaId, String promptAreaRowId, String docMapAreaId, String fixedTableId, String topLevelUpdatePanelId, String docMapUpdatePanelId, String promptSplitterId, String docMapSplitterId, String docMapHeaderOverflowId, String directionCacheId, String browserModeCacheId, ClientPrintInfo clientPrintInfo) +118

   Microsoft.Reporting.WebForms.ReportViewer.OnPreRender(EventArgs e) +2741

   System.Web.UI.Control.PreRenderRecursiveInternal() +166

   System.Web.UI.Control.PreRenderRecursiveInternal() +236

   System.Web.UI.Control.PreRenderRecursiveInternal() +236

   System.Web.UI.Control.PreRenderRecursiveInternal() +236

   System.Web.UI.Control.PreRenderRecursiveInternal() +236

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4682

 

Appreciate any suggestion or help to get thru this issue.


Thanks,

Sree.


Unable to pass in parameters to Dataset using SSRS 2017 REST API feature

$
0
0

Hi,

I've been trying out this feature in SSRS 2017: Develop with the REST APIs for Reporting Services

Based on the SwaggerHub documentation, I'm able to browse my report server using the following URL:

http://localhost/reports/api/v2.0/Reports

Using this feature, I'm also able to create a dataset on the report server and access it by sending HTTP REQUESTS. I'm using Postman to test these HTTP(POST) requests. Following is the URL:

http://localhost/reports/api/v2.0/datasets(dataset-id)/Model.GetData
http://localhost/reports/api/v2.0/datasets(04c53a0a-08eb-4187-b2c1-7e328e18f6d9)/Model.GetData

The above dataset is a storedprocedure which has no parameters and I'm able to get the output in JSON format without any issues.

The problem comes when I have a stored procedure which has parameters, I'm unable to pass in parameters using this REST API feature. Suppose if the parameter for my storedprocedure isuserid, in Postman software there is an option where I can give parameters and the above URL turns to the following:

http://localhost/reports/api/v2.0/datasets(04c53a0a-08eb-4187-b2c1-7e328e18f6d9)/Model.GetData?userid=5
But it is not accepting any parameters in this way. I'm getting the following error:
{"error": {"code": "220","message": "The data set could not be processed.","details": [
            {"code": "221","target": "@userid","message": "The parameter '@userid' requires a non-empty value."
            }
        ]
    }
}

I also gave a default parameter for this dataset while creating it (userid=1), but whatever value I'm passing in through this HTTP request it is still displaying the output for userid=1.

I also tried to send parameters in the body of the request:

{"Parameters": [
    {"Name": "userid","Value": "5"
    }
  ]
}

 But still didn't work.


Please let me know if there's a way to make this work.

Thanks & Regards,
Sudhir


Can SSRS work with a 64-bit ODBC DSN?

$
0
0

I am trying, with no luck at all, to make a SSRS Data Source recognize a 64-bit ODBC DSN I've made, pointing to a MySQL database. The SSRS Data Source wizard refuses to "see" the DSN. I've already tried using a 32-bit ODBC/DSN, but that refused to see the database - so I must use the 64-bit version. But I'm getting no where with this and I've been trying to make it work for days.

Please, someone just tell me, will the SSRS Data Source work with a 64-bit ODBC/DSN? If so, how in heck do I make it work??


Rod

Page breaks in win10

$
0
0

SSRS Reports with page breaks work ok in Adobe Reader in win7 but not in win10.


SSRS parameter with dropdownlist

$
0
0

Hi,

In an ASPX web application I use ReportViewer to show reports that require parameters with multiple choice.

If I zoom at 90%, some dropdownlists close as soon as the user click on it, so that it's impossible to make choices

Any Idea on how to worckaround this bothersome behaviour?

Thanks 


With SSRS 2017 ReportExecutionServiceSoapClient getting error "The HTTP request is unauthorized with client authentication scheme 'NTLM'. The authentication header received from the server was 'Negotiate'."

$
0
0

I have an .NET Core 2.0 application which uses the SSRS2017 ReportExecutionServiceSoapClient to generate a report. The application works fine in 2 lower environments. However when I moved the application to production I got the error: "The HTTP request is unauthorized with client authentication scheme 'NTLM'. The authentication header received from the server was 'Negotiate'."

I've checked the rsreportserver.config and the rssrvpolicy.config on the SSRS servers and there isn't any obvious setting that I could change.

On lower environment servers and production the rsreportserver.config has:

<Authentication>
<AuthenticationTypes>
<RSWindowsNegotiate/>
</AuthenticationTypes>
<RSWindowsExtendedProtectionLevel>Off</RSWindowsExtendedProtectionLevel>
<RSWindowsExtendedProtectionScenario>Proxy</RSWindowsExtendedProtectionScenario>
<EnableAuthPersistence>true</EnableAuthPersistence>
</Authentication>


How can I fix this?

How to fix position and size of Rectangle in SSRS report

$
0
0

I'm trying to make a report with background is a picture. 

There are 2 boxes in background that i need fill up data to. These boxes are fixed size and position. Box1 is in above of box2. I already put a tablix1 to box1 position with a row group. Number of row will be generated from 1 to 8, that mean min of row is 1 and max is 8 for tablix 1.

Number of row in tablix1 changing will effect to Tablix2 which will be put in Box2. Tablix2 will be pushed lower .

This issue is more difficult with Tablix2's row number will be changed from 1 to 8 as well. It's make the background image has white space at the bottom.

Is there any way to fix the position and size of rectangle?

Thank you all for your help


ssrs 2012 report subreport is running really slow

$
0
0

I have an existing ssrs 2012 report that is running really slow this year. Last year it did not run as slow.

Basically there is a driver report and this driver report can run up to 9 subreports. The number of subreports that are executed depend upon how many reports the user selects to run. 

Today I ran timings on each subreport and they took between 3 to 5 minutes for each subreport to render when only 24 customers were selected at a time.

Thus is there a way to:

1. see what is causing each applicable subreport to run so slow and/or

2. What can I do to speed up the applicable subreport(s)?

rrRenderingError after upgrading to SQL Server 2008 R2

$
0
0

Hi you all,

 

We upgraded from SQL Server 2008 to SQL Server 2008 R2, we exported and imported our reports and most of them worked but some of them don't.

 

The problem occurs when we provide multiple values for a parameter (We want to view values of more then 1 Machine), we then get the error: 

The value '4' is invalid.  Valid values are between '0' and '1'. ---> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: The value '4' is invalid.  Valid values are between '0' and '1'. 

(--> from the log file)

 

The weird thing is that when only 1 machine is selected, the report works correctly. 

I hope somebody can help me because I'm searching for the cause for almost a day now.

 

Kind Regards,

Lennart

 

If you have any further questions, don't hesitate to ask!

 

Additional Information:

- When more then 1 machine is selected, 1 page per machine and per day is shown

- Stacktrace below the error: (from logfile of Reporting Services)

   at Microsoft.ReportingServices.OnDemandReportRendering.InternalTablixMemberCollection.get_Item(Int32 index)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.GetTablixMembersInstanceIndex(TablixMemberCollection rowMembers, Int32 level, List`1 instanceState)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.GetTablixMembersInstanceIndex()

   at Microsoft.ReportingServices.Rendering.SPBProcessing.Tablix.WritePaginationInfo(BinaryWriter reportPageInfo)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.PageItemContainer.WritePaginationInfoProperties(BinaryWriter reportPageInfo)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.ReportBody.WritePaginationInfo(BinaryWriter reportPageInfo)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.ReportSection.WritePaginationInfo(BinaryWriter reportPageInfo)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.Report.UpdatePagination()

   at Microsoft.ReportingServices.Rendering.SPBProcessing.SPBProcessing.PaginateReport(Int32 startPage, Int32 endPage)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.SPBProcessing.InitializeForInteractiveRenderer(Report report, CreateAndRegisterStream createAndRegisterStream, Boolean registerEvents, Hashtable& renderProperties)

   at Microsoft.ReportingServices.Rendering.SPBProcessing.SPBProcessing..ctor(Report report, CreateAndRegisterStream createAndRegisterStream, Boolean registerEvents, String rplVersion, Hashtable& renderProperties)

   at Microsoft.ReportingServices.Rendering.RPLRendering.RPLRenderer.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream)

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

Performance DAX execution - Add filters in SSRS Parameterized DAX Query

$
0
0

Hello,

In DAX query, SSRS generates:

- Parameter @CompanyExternalSystem ID defined in:

DEFINE VAR CompanyExternalSystemID1 = IF(PATHLENGTH(@CompanyExternalSystemID) = 1, IF(@CompanyExternalSystemID <> "", @CompanyExternalSystemID, BLANK()), IF(PATHITEM(@CompanyExternalSystemID, 2) <> "", PATHITEM(@CompanyExternalSystemID, 2), BLANK()))
VAR CompanyExternalSystemID1ALL = PATHLENGTH(@CompanyExternalSystemID) > 1 && PATHITEM(@CompanyExternalSystemID, 1, 1) < 1

- Query body:

EVALUATE SUMMARIZECOLUMNS('Contract'[ServiceGroupCode], 'Contract'[ContractName], 'Calendar'[Date], 'Calendar'[YearMonth], 'Calendar'[MonthNumber], 'Company'[ContractCompany], 'Company'[ExternalSystemID], FILTER(VALUES('Company'[ExternalSystemID]), ((CompanyExternalSystemID1ALL || 'Company'[ExternalSystemID] = CompanyExternalSystemID1))), FILTER(VALUES('Calendar'[CurrentMonthFlag]), ('Calendar'[CurrentMonthFlag] = VALUE("0"))), FILTER(VALUES('Contract'[ServiceGroupCode]), ('Contract'[ServiceGroupCode] = "MNS") || ('Contract'[ServiceGroupCode] = "MCS")), FILTER(VALUES('TaskProcessTypeGroup'[Process Type]), ('TaskProcessTypeGroup'[Process Type] = "Problem")), FILTER(VALUES('Calendar'[13 Month Period]), ('Calendar'[13 Month Period] = VALUE("1"))), FILTER(VALUES('Task'[TaskStatus]), ('Task'[TaskStatus] <> "Cancelled")), "Static Entered in Period", [Static Entered in Period], "Static Closed in Period", [Static Closed in Period])

The query body is not important to me.

When I run the similar query in Power BI with filters, it takes 4 seconds and returns results. I generate this parametized DAX query and execute, it's extremely long to complete. So I cancel the execution.

In fact in execution, the parameter value should filter the query with specific ExternalSystemID entered but it's not passed the value to filter the reads of dimension tables. My estimation for dimension reads is over 52 million rows. 

I try to hardcode ExternalSystemID in the below parameter and run the query in SSMS, it takes 4 seconds:

DEFINEVAR CompanyExternalSystemID ="SPG-SD100000010913"

VAR CompanyExternalSystemID1 =

      IF(PATHLENGTH(CompanyExternalSystemID) = 1,

            IF(CompanyExternalSystemID <>"", CompanyExternalSystemID,BLANK()),

                   IF(PATHITEM(CompanyExternalSystemID, 2) <> "",PATHITEM(CompanyExternalSystemID, 2),BLANK()))

VAR CompanyExternalSystemID1ALL =PATHLENGTH(CompanyExternalSystemID) > 1 &&PATHITEM(CompanyExternalSystemID, 1, 1) < 1

My question:  How can I pass the parameter value in SSRS to reduce the execution from unknown time to 4 seconds.

Please point me to relevant Forum answers, Microsoft fixes or Microsoft person that I can discuss and resolve my query performance issue. SSRS uses Live Connection to SSAS Production Tabular models. 

Much appreciated your help.

Kiet. 

Viewing all 24955 articles
Browse latest View live


Latest Images

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