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

SSRS expression for the last month value

$
0
0

Hi Guys - I have an expression in SSRS, where it should display the last month value in the YTD column. Here is my current expression. 

The First line is displaying correctly but the second line is display 74 instead of 17,704. The last column which is in green and red iis YTD column. How do i correct this expression ?
 
=iif(Fields!row_name.Value = "Total Active Patients on Service this Year",Last(Fields!PatientCount.Value),
iif(Fields!row_name.Value = "Total Distinct Patients on Service this Year",Last(Fields!PatientCount.Value),
Fields!YTD.Value))


RS.exe results in "Client found response content type of '', but expected 'text/xml'."

$
0
0

Greetings. I have a project where I need to migrate reports from SharePoint SSRS to two different Native SSRS boxes (Native 1 and Native 2).

Both of the Natives are new boxes. The repository DB's reside locally. I personally did the install of SQL Server and SSRS recently. 

Using rx.exe, I can export the reports of one folder on the source to a folder w the same name to Native 1, but not to Native 2. Native 2 generates the message "Client found response content type of '', but expected 'text/xml'."

I've compared the configs between the two different destination servers and they appear the same with the exception of different links and the service account they're each using for SSRS to run. 

One important fun fact I should note is that on Native 1 in RS Config Manager I can click the link in Web Service URL and it opens as I'd expect. I try the same in Native 2 and get the message below. 

Also note that I have the same permissions on both boxes.

More information<noscript><id id="moreInformation">More information</id></noscript>

This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying.

For more information about HTTP errors, see Help.


Thanks in advance! ChrisRDBA

SSRS Web portal, change texts, not branding

$
0
0

Hi

We have a SSRS Power BI server up and running, branding done to customers satisfaction

we would though like to control the texts used in the below framed section, is that possible ?

TIA

Regards

Peter


SSRS able connect only localhost.

$
0
0

Hi guys.

I installed reporting services today but I connect in portal Reports only from localhost. I can't connect portal Reports from other computers in the same network.

The reporting services server is installed in the same Server where run production database for ERP and I don't have issue connect from computers in local network.

Firewall is disabled.

Do you help me? I don't know what do.

Thanks.

SSRS 2016 Requiring Multiple Logins

$
0
0

Hello,

For the last 3-4 weeks now, when I login to our SSRS from home, I have to re-enter my credentials no less than 15 times (this is NOT an exaggeration) before I can use the site. Internally, it never asked for credentials until this time. This is independent of the browser I use. Chrome and the new Edge both are behaving the same. Interestingly enough, the old Internet Explorer still on my PC works with just ONE authentication. Is this a Chromium engine issue??

On the server, I'm running Server 2016 with all of the latest patches and SQL/SSRS 2016 (13.0.5820.21, which looks like the latest cumulative update). On my home workstation, I'm running Windows 10 Home Edition. On my desktop at work, I'm running Windows 10 Pro attached to the domain. I remote into my workstation for development work and do everything else locally on my PC at home. The problem exists whether I try from my home PC or my work PC.

When I'm remoted in to my work PC, I can hit the internal URL and it asks for credentials just once but I can cancel it there and it all works fine. Only using the external URL is a problem. It is secured with a security certificate.

What I'm wondering is if there is a known bug with a Windows update? The only two updates installed on the server around the time this started was KB4565511 and KB4565912. I have uninstalled KB4565511 and tested and the problem persisted so I allowed it to re-install. KB4565912 won't allow me to uninstall so I can't test that one. Although, when I looked at that one, it appeared to just be stuff for Windows Update.

Any assistance with this horrible bug is appreciated.



Splitting PDF documents

$
0
0

This may be a stupid question but I'll throw it out here, is it possible to use sql 2005 to split up pdf files into individual files by a field on the form or an index?

 

Thanks.

SSRS - Add a text box that displays parameter values

$
0
0

Hi,

I'm trying to create a SSRS report based on http://msdn.microsoft.com/en-us/library/ff714047(v=sql.105).

Under Display Data Source, Dataset, and Parameter Values andAdd the Report Title sections, I'm trying to use the parameters values, but the values are not displayed

Can you please explain to me why the values are not displayed?

Note: I did everything that is explained in the document.

Regards,

Bader

View History Snapshots not available when using Linked Reports

$
0
0

Hi All,

I am seeing strange behavior when I create a Linked report and try generating history snapshots on it using a schedule.  I am using SSRS 2017 Enterprise Edition.

The history snapshots are properly generated, but when I click on the three little dots "..." to "View history snapshots", the "View history snapshots" option is not available. 

I can still get to the "View history snapshots" option if I subsequently click "Manage".  This behavior is different for non-linked reports that have history available.

Steps:

  1. Create a MASTER report.
  2. Create a LINKED report which is linked to MASTER.
  3. Generate history snapshots on LINKED report using a schedule (my schedule is once every 12 hours).
  4. Click on the three little dots of LINKED report and see if "View history snapshots" option is available.  (Unavailable for me).
  5. Click on "Manage" and see if "View history snapshots" is available. (Works for me)

It is confusing for my user-community who are used to clicking "View history snapshots" without having to go to "Manage".

Is this the intended behavior, or am I missing something here?

Thanks!

--Dan


X-Axis intervals are seems inappropriate

$
0
0

Hi All,

I have a bar chart and in that we are trying to have x-axis intervals closed to the values from the data.

This is with the default horizontal axis range and interval setting.

Please note the Leavers are -1424 but still on the axis range it is -50000 which is not looks good.

In fact, what we trying is if the Leavers is -1424 then starts the range with -2000 as this is close number.

So the range would look like -2000   0    50,000     100,000    150,000 and so on until the maximum date value.

The above range starting with -50,000 looks perfect when we have 40,000 to 49,999 leavers at place.

Likewise in the lower timeframe when the counts would probably under 200. When the Closed clubs count is -3 then the range should look -5    0     50    100    150    200

I have ran into setting up the expressions but in case it work for one it goes odd for other. 

I ended up with no finding above this so if somebody has tweak doing this will be really appreciating helping me here.

Thanks in advance!


Dilip Patil..

Limit no.of cloumns in ssrs matrix report

$
0
0

Hi all,

           This is for Limit no.of columns in matrix report

 


Step one: copy the following code to the custom code area

Dim FlagTable As System.Collections.Hashtable

Dim Flag AS Integer

 Function MyFunc(ByVal NewValue As Object) As Integer

If (FlagTable Is Nothing) Then

FlagTable = New System.Collections.Hashtable

End If

If (NewValue Is Nothing) Then

NewValue = "-"

End If

If (Not FlagTable .Contains(NewValue )) Then

Flag =Flag + 1

FlagTable.Add(NewValue, nothing)

End If

MyFunc = Flag

End Function

Step two: Add a list to your report

1.      Right-click the list ,and then select Properties.

2.      Click Edit details group… button

3.      Type in the expression=Ceiling(Code.MyFunc(Fields!Productname.Value)/2)

Note:

1) Fields!Productname.Valueis your column group datafield

2) 2 is the number of the columns you want to display in a row

Step three:Sort the dataset by column group field, and then drag the matrix into the list

1.      Switch to the data tab.

2.      Add ‘order by datafield’ to sort the dataset by the column group datafield  here is a example:

select * from vProductProfitability

where Year=2003 and

MonthNumberOfYear in (1,2,3,4,5,6,7,8,9,10,11,12)

order byProductname

3.      Drag the matrix into the list and preview the report.

        Can  you explain second step briefly

i drag and drop the list from toolbox to the report area,when i right click on the list it shows Rectangle properties.

In that i am not able to see (Details) in the Row Groups

List means list data region are some other list

please could you explain


Thanks

srujitharam



SSRS - Matrix renders columns overlapping in certain conditions

$
0
0

RS 2017 - Report with matrix using IE 11. When 29 or 30 columns are returned the columns overlap when rendered. The matrix works fine for less than 29 or more thatn 30 columns. The 2nd column from the left seems to collapse. If the zoom is changed to 75% the matrix renders correctly. Exporting to Excel also renders correctly. Ideas welcome! 


Linda

Scope Parameter with LookUp Error

$
0
0

Hi,

I am using SSRS 2012 and I intend to create a column chart combined with a line chart.

Column Chart is dependent on T1 Dataset

Line Chart is dependent on T2 Dataset 

Here is the sample data.  I know that I can achieve that by joining these 2 datasets but my requirement is to have 2 separate datasets ( as my actual datasets have some separate report level parameter filters so I can't combine)

DECLARE @T1 TABLE  ( [Yr] int, StudentCount INT) 

INSERT INTO @T1 VALUES
(2013,55 ),
(2014,77),
(2015,87),
(2016,98),
(2017,69),
(2018,88),
(2019,79)



SELECT * FROM @T1




DECLARE @T2 TABLE  ( [Yr] int, Failed INT) 

INSERT INTO @T2 VALUES
(2013,12 ),
(2014,20),
(2015,27),
(2016,15),
(2017,31),
(2018,10),
(2019,25)


SELECT * FROM @T2

Now I am looking for a report where the Column chart shows ' Total Number of Students per year"

Line on the bars should show ' Total Number of Failed Students per year'

As I can't combine the datasets, I used the approach of  adding an expression to the chart and used the lookup to get the value from T2 (dataset2) Similar to the approach in this Example but I want to keep my datasets separate

=LookUp((Fields!Yr.Value, "Chart1_CategoryGroup"),Fields!Yr.Value,Fields!Failed.Value,"Dataset2")

However , I am getting the following error 

The Y expression for the chart ‘Chart1’ has a scope parameter that is not valid for a lookup function. The scope parameter must be set to a string constant that is the name of a dataset.

Please advise what's wrong in my lookup expression as I tried to use Dataset1 in place of "Chart1_CategoryGroup" too

Thanks in advance


Date range filter

$
0
0

Hi,

When running the query end date to be used for date of the range desired ex 02/1/2010 to 03/01/2010 insted of 02/01.2010 to 02/28/2010.

Ex: Suppose i want report month of Feb, But I am selecting upto march 1st then i will get FEB month. Now i want if i Select 1st to 28th data.

Please help this

Application ID (AppID) for SQL Server Reporting Services

$
0
0
How do I locate the Application ID (AppID) for SQL Server Reporting Services (SSRS) 2016?  I need the AppID when I try to bind my SSL certificate to SSRS.  Is it located in the registry or Windows Task Manager?  If either are true, what is the best way for me to find it?

Very Kind Regards, Kevin Scott

any gotchyas in ssrs if the only access i have is sql auth?

$
0
0

hi we run 2016 enterprise.  on one of the projects i'm working, i only have sql auth connectivity. 

is that going to limit me in developing an ssrs report?  something tells me i need windows creds but maybe i'm wrong.


Limit no of columns in SSRS matrix report

$
0
0

I have designed the matrix report(SSRS 2008) which has dynamic column, it grows based on the no of products in the table.

Database table structure looks like below.    

Productname AssetClass Marketvalue
Product1AEQ1000
Product1IEQ2000
Product1Prop3000
Product2AEQ1000
Product2IEQ2000
Product2Prop3000
Product3AEQ1000
Product3IEQ2000
Product3Prop3000
Product4AEQ1000
Product4IEQ2000
Product4Prop3000

    

The matrix report displays like below. Column grows based on no of products in the table.   I have applied column grouping for Products and row grouping for assetclass.

 Product1Product2Product3Product4
AEQ1000100010001000
IEQ2000200020002000
Prop3000300030003000

But I want to break the matrix columns to display 2 proudcts wise like below..

 

 Product1Product2
AEQ10001000
IEQ20002000
Prop30003000
   
 Product3Product4
AEQ10001000
IEQ20002000
Prop30003000

Is it  possible to apply column break in matrix report?

Thanks,
Ramesh


Cannot open Power BI Report Server in SSMS

$
0
0

Hello,

I am running SQL Server 2016 SP1 CU3 (13.0.4435.0). On Windows Server 2016 Build 14393.1715. I have also installed MS Power BI Report Server Version 2.46.4732.722. Power BI Report Server is a solution that customers deploy on their own premises for creating, publishing, and managing reports, then delivering them to the right users in different ways, whether that's viewing them in web browser, on their mobile device, or as an email in their in-box.

Power BI Report Server is configured the same way as SQL Report Server in the Report Server Configuration Manager. I have configured it and it is working and the reports are accessible from the URL.

I need to make a change to the Power BI Report Server properties. In SSMS I go to connect to Reporting Services. I browse and choose the Report Server instance: MyServer\PowerBIReportServer

I then get the message: "Cannot connect to MyServer\PowerBIReportServer. Additional information: The Reporting Services instance could not be found."

Any advice on how to resolve the issue would be appreciated. Thanks.

Calculation sum include Previous function

$
0
0

Dear all Expert,

I'm working on SSRS and using Report Builder. My report as below

RowNumber         Value
1                         1220
2                         1225
3                         1250
4                         1279
5                         1289
6                         1295
7                         1320
8                         1350

Now, I need a result = Sum ( Value@EvenRowNumber - Value@OddRowNumber )

In Report Builder, I'm using Tablix with code to get "Value@EvenRowNumber - Value@OddRowNumber"

=iif(RowNumber("datashet1") Mod 2=0,Fields!VALUE.Value-Previous(Fields!VALUE.Value),nothing)

I don't know how to sum of them

Mean, result = (1225 - 1220 ) + (1279-1250) + (1295-1289) + (1350-1320) = 70

Thanks in advanced!

can i detect in an ssrs footer that this is the last footer?

$
0
0
hi we run 2016 enterprise.  i have some text boxes in my footer i'd like to leave blank except if its the last footer.  is there a way to detect that this is the last footer?

can an ssrs header be populated with data from a dataset

$
0
0

hi we run 2016 enterprise.  i picked up an rdl from a peer where she tried the familiar =First(Fields!inv_date.Value, "mydataset") syntax as an expression for atextbox in an ssrs   header.

the error that is generated has to do with scope of the dataset etc but i'm aware that textboxes arent associated with datasets, rather matrices etc are.

i also noticed you cant drag a matrix to a header.

so if someone really wants a single dataset column result populating a textbox in a header what do they do?  should individual  params be populated and then be sourced by text boxes in the hdr?

Viewing all 10045 articles
Browse latest View live


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