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

SSRS: How to sum string values??? HELP!!!!!!

$
0
0

The data source is Fetch XML - so all the values are string.

I need to sum the values but getting an error:

Warning      1      [rsAggregateOfNonNumericData] The Value expression for the textrun ‘Textbox25.Paragraphs[0].TextRuns[0]’ uses a numeric aggregate function on data that is not numeric.  Numeric aggregate functions (Sum, Avg, StDev, Var, StDevP, and VarP) can only aggregate numeric data.

I tried converting it to INT but it returns a large number which does not match what I'm expecting. Anyone please help!


SSRS SQL Server Reporting Services MHTML Excel

$
0
0
I have a report designed in SQL Server Reporting Services 2012 and would like to be able to email inline as MHTML or as an Excel attachment and use either on a mobile device.  The report contains grouping that can be expanded by clicking the plus sign to see details.  When it is sent as MHTML the plus signs do not appear on any device.  When it is sent as an Excel attachment the plus signs appear when opened on a desktop but do not appear when opened on a mobile device.  The two mobile devices tested were an iPhone and Android with the Microsoft Excel app installed.  I am trying to achieve the same functionality as a Cognos report delivered as an MHT file.  I tried to open the SSRS MHTML file with Cognos MHT Viewer and it did not allow.

SSRS SQL Server Reporting Services 2012 MHTML Excel

$
0
0
I have a report designed in SQL Server Reporting Services 2012 and would like to be able to email inline as MHTML or as an Excel attachment and use either on a mobile device.  The report contains grouping that can be expanded by clicking the plus sign to see details.  When it is sent as MHTML the plus signs do not appear on any device.  When it is sent as an Excel attachment the plus signs appear when opened on a desktop but do not appear when opened on a mobile device.  The two mobile devices tested were an iPhone and Android with the Microsoft Excel app installed.  I am trying to achieve the same functionality as a Cognos report delivered as an MHT file.  I tried to open the SSRS MHTML file with Cognos MHT Viewer and it did not allow.

SSDT October 2015 Preview in Visual Studio 2015 Ignores TargetServerVersion

$
0
0

SSDT October 2015 Preview in Visual Studio 2015 ignores TargetServerVersion-

I have an existing SSRS project, with TargetServerVersion set to "SQL Server 2008 R2, 2012, or 2014".

Making a minor edit (changed a label's text), causes the report to be upgraded to 2016 schemas, regardless of the TargetServerVersion-

Before:

<Report xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner">

After:

<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns:cl="http://schemas.microsoft.com/sqlserver/reporting/2010/01/componentdefinition" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition">

And I'm unable to deploy this report to a 2012 SSRS instance, with this error:

Exception calling "CreateCatalogItem" with "7" argument(s): "The definition of 
this report is not valid or supported by this version of Reporting Services. 
The report definition may have been created with a later version of Reporting 
Services, or contain content that is not well-formed or not valid based on 
Reporting Services schemas. Details: The report definition has an invalid 
target namespace 'http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition' 
which cannot be upgraded."


Disable or enable the paramenters

$
0
0

Hi All,

I have a report with  3 filter . Startdate and  Endate , Year .

Client can able to view the report with Startdate and  Endate  or Year .

So how can i disable the Start date and  End date  if select Year  ?

So how can i disable the Year filter  if select Start date and  End date.

Please can you suggest the solutions for this ..

thanks,

Sri

Displaying Values as Percentages in SSRS Charts

$
0
0

Hi All,

I got a stacked column chart displaying a split between 2 categories.

Instead of displaying the actual value in the Values field, can I display it as percentages yet the bar would still be split by actual values in Y-axis.

So, I want to display in percentages but in the format of 2nd chart. The moment I am evaluating percentage in the chart values, it is reverting back to 1st Chart.


Getting Error while opening Power View Report

$
0
0

Hi ,

Previously I am able to open my power view reports and can able to edit Data Sources. But unfortunately today I am getting the bellow error

" An unexpected error occurred while connecting to the report server. Verify that the Reporting Services Service Application mapped to this web application is available OR the report server is available and configured for SharePoint Integrated mode. --> The HTTP service located athttp://lvgi102:32843/fe1aa8464fec4c9f8a2cd59a76c200e1/ReportingWebService.svc is unavailable.  This could be because the service is too busy or because no endpoint was found listening at the specified address. Please ensure that the address is correct and try accessing the service again later. "

I checked in Windows event log as well and got below error-

" Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (17cd9aaf-77eb-4e67-b357-a4c03f580288).

Reason: A call to SSPI failed, see inner exception."

Can any one please tell me what could be the possible reason for this error.

Thanks In Advance.

Sandeep Patel


iframe within a div container

$
0
0

Hello,

I am sorry if this question was already asked, also I'm quite new to SSRS. I have a report with a table that have links to a sub-report. I made the action to an expression like:

="javascript:void(window.open('http://localhost/myLink.html?param=<sub-report>'))"

Please don't mind the syntax, the idea is that the report will open in a container within my html file. I have something like this on my html:

<div class="report-container">
<iframe src=""></iframe>
</div>

and within the page I take the param from url and put it on the 'src' attribute. Now everything works great in Chrome and Firefox but in IE11 I don't have a scroll for the body of the report which is very frustrating. I am able to hack it with jQuery and remove a height attribute from the body element to make the scroll bar visible, but I wondered if there is a better and elegant solution for this.

Thanks in advance!!
                            Liran


MultiSelect Issue with DAXMD

$
0
0

Hello,

Recently we’ve facing a strange behavior with Sharepoint PowerView feature. On a view we have a bar chart showing the product with the Net Sales corresponding, and a table showing the total Net Sales display according to a Actual vs budget percent formula.

When I select only one product on the chart, the Net sales displayed in the table is OK. But as soon as I select two or more products, the Net Sales in the table display the Total Net Sales in order to display the Net Sales only for the products I’ve selected.

The powerView data source use the DAXMD connector, because all of the data come from and OLAP Cube.

With the use of the profiler, we cautch the query involved in the issue. The query is the following :

EVALUATE     CALCULATETABLE(       ROW(         "Net_Sales", 'Accounts'[Net Sales],         "Net_Sales_FormatString", 'Accounts'[Net Sales.FormatString]       ),     KEEPFILTERS(       FILTER(         KEEPFILTERS(VALUES('Product'[Product.Key0])),         OR(   'Product'[Product.Key0] = 2374   ,   'Product'[Product.Key0] = 2375 )

) ) )

We checked the query in Management studio and the result are the following :

When we select just one product (the 2374 or the 2375 ID), the result shown is ok (21 M€ or 50M€ depending the ID).

But when we selected both of them the resultat shown is 722M€ which is not the result for 2374 and 2375 (21+ 50 = 71 and not 722).

When we look at the data through Excel connected to the OLAP Cube (Mdx access), we had the right result.

Does anybody encounter the same behavior ?

Thanks alot for your help.

Regards,

Sébastien


Sebastien BLANC MSCA - MCTS

Expression for parsing out XML values from XML stored in a column (NOT an XML datasource)

$
0
0

Hi,

I'm new to SSRS (We are using SQL 2014) and have been asked to create a report from SharePoint list data. One of the columns in my list contains XML data. I need to pull three different fields from this XML. I see lots on using xml as a datasource but I'm using a SharePoint list as my datasource. Before I get too far down the wrong road I thought I'd ask here if there was a built in means of parsing XML or if I should look at using the Text Function under Common Functions in the Epression builder?

Thank you!


Love them all...regardless. - Buddha

No Data showing when there is data

$
0
0

I created a report in Reporting Services which was working.

Then I filled in the "No Rows" section in the properties of a tablix in the report.

Now it shows the No Rows message even if there is data.  If I open the Shared Dataset that is used in the report and open Query Designer and run the query I get data. 

What is wrong?

Confused...

Fred


Fred Schmid

SSRS pass parameter null values to URL with Custom Code

$
0
0

My report is set to pass null values to stored procedure to get the data from database.
The problem is when I need to sen parameter values to URL with custom code. When I try to place the report to report manager I get an error: [BC30201] Expression expected

The code I've made:

Public Function GetForm() As String

Dim CConcernID as String=If(Report.Parameters!CustomerConsernID.Value Is Nothing) Then "CustomerConsernID:IsNull=true" Else "","<INPUT type='hidden' name='CustomerConsernID'  value='") & (Report.Parameters!CustomerConsernID.Value.ToString()& "'>" End If

Dim Path as String = Report.Globals!ReportFolder & "/"
Dim Server as String = Report.Globals!ReportServerUrl & "?"

Dim a As String = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN""><html><head><meta http-equiv=""Content-Type"" content=""text/html; charset=utf-8""></head><body><FORM id='f1' action='" & server &  path & "xxxx007a_Xls"  & "' method='post'><INPUT  type='hidden' name='rs:Command' value='Render'> <INPUT type='hidden' name='rc:LinkTarget' value='main'><INPUT type='hidden' name='rs:Format' value='EXCEL'>"

a = a &  CConsernID

a = a & "</FORM></body></html>"

a = a.Replace("'","""")
 
return a

End Function  

Any ideas?

text colour formatting in ssrs

$
0
0
Hi I tried this expression:

    =iif(iif(Sum(iif(Fields!Year.Value = Max(Fields!Year.Value) - 1, Fields!Fact_Person_Count.Value, 0)) = 0
    , 0
    , (Sum(iif(Fields!Year.Value = Max(Fields!Year.Value), Fields!Fact_Person_Count.Value, 0) / Sum(iif(Fields!Year.Value = Max(Fields!Year.Value) - 1
    , Fields!Fact_Person_Count.Value, 0))) - 1))<15,"Brown","LightGreen")

But its giving the following error:

    [rsRuntimeErrorInExpression] The Color expression for the textrun Incre_Decre_Amount.Paragraphs[0].TextRuns[0] contains an error: Input string was not in a correct format.

Can someone help please.

Thanks

Group by filtering question

$
0
0

I have a table that contains the records of a sales of a point of sale system.  Each sale is identified by a salenumber and each item of the sale has this field so the sale can be grouped by the salenumber.   It also has a field that tells if the sale is taxed or exempt.  If it is taxed, it has code='T', if it is exempt, this code is omitted.

I can retrieve the results i want in code by looping through the dataset.  What I want to do is iterate through the group by using Sql query.  I am stuck

Thanks in advance

Bruce

forcing carriage return in a textbox

$
0
0
Hi we run 2014 enterprise.  Can parts of the phrase that goes into a text box be forced to go to designated lines in that box?  For instance if I have the phrase aaaaa bbbbb ccccc ddddd going into my text box , can I force a carriage return after each word (eg aaaaa)  within the textbox? 

Need insight into SetExecutionParameters step

$
0
0

Windows Server 2012 R2
Microsoft SQL Server 2012 - 11.0.5058.0 (X64)

SQL Server  Reporting Services - Sharepoint Integrated Mode 

Hi,

We hare several reports that are running slower on a Windows Server machine, as opposed to  a developer's workstation (e.g.  Windows 7). We've narrowed down the slowness to  the  SetExecutionParameters service method. According  to the Sharepoint trace log, it takes  about 10-11 seconds on a Windows Server machine, whereas it is 3-4 seconds on a Win 7 machine. 

According  to MSDN, that method "Sets and validates parameter values associated with the current report execution."

https://msdn.microsoft.com/en-us/library/reportexecution2005.reportexecutionservice.setexecutionparameters(v=sql.110).aspx

Any idea on how I can get more information on that service method? How can I determine why it is so slow on Server 2012? The reports in question have a boatload of parameters (100+).

We've tested  with  all  the components on a single  machine, and components on different machines (e.g. sql server on machine 1, sharepoint on machine2). We tested using VMs, and bare metal servers. The results are the same. They are only decent on developer's  workstations (physical).

Thanks,
pimy

populate temp table and do select in same query

$
0
0

my query looks something like this...

drop temp1

drop temp2

droptemp3

populating temp Table1

Populating temp Table2

Populating temp Table3

select a.temp1, b.temp1, x.temp2, f.temp3, p.temp3

from temp1 join temp2

join temp3

The reason i am doing this is because the temp tables are getting data from linked server to local temp tables and then i am performing the join locally which gives me tremendous performance boost.

I am trying to create a report based on this query. However whenever I try to execute the whole chunk of query at once it gives me the o/p for temp table creation only (Eg. 10 rows affected, 20, rows affected, 15 rows affected).

My expectation was that the o/p would display the result of the final select query.

is there any way to achieve this?

My final goal is to take this query and put it in SSRS query designer window and work off of the final sql query.

Thanks in advance.


Dhananjay Rele

how to hide a textbox in ssrs when i export to MHTML format

$
0
0

Hi 

how to hide a textbox in ssrs when i export to MHTML format.

Regards

BA



SSRS report query

$
0
0

Hi, I am working on a SSRS report which is fed from below table Table1 ID,QUESTION,ANSWER,YEAR, FLAG 1, QUESTION-A, ANS1,2002 ,1 2, QUESTION-A, ANS3, 2002, NULL 3, QUESTION-A, ANS5, 2005, 2 ------------------------------------- For my report the above table is pivoted as Table 2 ID,YEAR,[QUESTION-A], FLAG 1, 2002, ANS1,1 2, 2002, ANS3, 3 3, 2005, ANS5,4 --------------------- Report is a matrix report and Column [ QUESTION-A] is a column group and report looks like 1:- For year parameter 2002 TABLIX headings ---1D,YEAR,ANS1,ANS3 Rows 1, 2002, 1, NULL 2,2002, NULL, 3 1:- For year parameter 2005 TABLIX headings ---1D,YEAR,ANS5 Rows 3, 2005, 4 Client is expecting that for all years there should be heading for all ANSWERS like below Expected TABLIX headings ---1D,YEAR,ANS1,ANS3, ANS5 But as shown in the table2 ,only year 2005 has ANS5 not all years and

hence when I filter the report by year , column group ANS 5 is not appearing which is correct How to achieve the expected result?



Report Server DB getting created on DB engine

$
0
0

Hi All,

I've installed Reporting Services 2008R2 STD edition on my local system.

I was trying to configure the Report Server, I am able to connect to the Report Server but the ReportDB and ReportTempDB are getting created in Database Engine instead of Report Server, when I connect to Report Server from SSMA this is what I see (Attached) Screen 1.

The screen2 is of Reporting Service Config Manager, When I connect to the report server using the URL what I am seeing is blank last screen shot attached.


Neil

Viewing all 20764 articles
Browse latest View live


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