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

Sum of ReportItemTextbox value

$
0
0

We have a report and one of the requirements is to display total of the payment field. Payment field is also calculated at the report level by combining different textboxes.  The question is, how should we calculate the total of the highlighted field? The total field is not incorporated in tablix as you can see below.

Any help or input would be appreciated.

Thanks!


Hope this Helps!



Column group

$
0
0

Hi all,

I want to create a report grouping by column but when I try to do it I get this output:

Bunitname1 Bunitname2
Tenant1
Tenant2
                      Tenant3
                      Tenant4


When I would like to obtain:

Bunitname1| Bunitname2
Tenant1   ..... Tenant3
Tenant2   .....  Tenant4

I found an answer speaking about matrix and including one matrix inside another but is not working it display only one row probably I am doing something wrong. There is any other way to obtain this result?

Thanks

Federico













SSRS using multiple select parameter in expression

$
0
0

Hi,

I am using parameters to create my query at runtime using data set expression.

I have a multi select string parameter that gets populated using a query. I want to add this multi select parameter values to where clause in expression of mail data set. I am able to join the string and make it comma(,) separated but not sure how can I add single quotes(') to it.

= join(Parameters!Column.Value,",")===>>a,b,c,d

requirement===>'a','b' ,'c'

Pls. guide

SSRS 2008 have 2 colums with amount needs to add Total cost and than total cost column divide by Total qty get avg

$
0
0

SSRS 2008,  have this report

 Qty Column --------- Est cost column -----    Mark up Cost Column  -   Did add Total cost column

4 pcs-                       $ 2000.00  --------------$  50.00 --------------- $ 2050.00

                                 

Avg  Cost                                                                                       $2050/4=  512.50

how to write this exp to get value $ 512.50 

what I did , its not giving me correct result,

=Sum(Fields!estCOSTAMOUNT.Value+Fields!COSTMARKUP.Value)/(Fields!QTY.Value)

can some one please advise what I am doing wrong.

thanks in advance

SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

$
0
0

Below expression works fine with text box but gives error in dataset expression.

="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch  on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+" and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")& "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,""," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"& join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &"')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,""," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value) and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," "," and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value) and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)

I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.

Pls. guide...


'In' operator in an expression

$
0
0

I want to use an expression with an 'In' operator like:

"IIF(Month(Fields!xyz_date.value) in (3,6,9,12), False, True)"

but seems like 'In' operator is not available in ssrs expression.

Please confirm it this true and what's the alternative (other than using 'OR' many times)


AshishSinghal

Repeating Values on axis (SSRS Chart)

$
0
0

Hi ,

     i have repeating values on axis .i am not sure sure how to get rid of this problem.i did workaround like changing interval property expression to iif(max(count(Fileld))<4,1,0) but it didn't help.i have attached  image file for reference .

SSRS Interactive Sorting

$
0
0

Hi,

I am creating a Report of having 2 groups. For Example, report has the columns (First_Name and Last_Name). And the report is group by University and the degree. If i apply the Interactive Sorting for the Columns First_Name and the Last_Name, then it will not works. The interactive sorting is not working in the report.

Please see the screenshot below

Pradeep


Error Message: Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, t

$
0
0

Hi

 

  I have a old report that was pointing to a different database, and i changed the connection string for that report and changed the field names (As per my new stored Procedure). In some places I keep getting this run time error, i have tried looking for all the hidden references to this field and i cannot find any parameter that the old database had.  The error messages that i get are as follows:

 

[rsFieldReference] The Hidden expression for the table ‘tblContactInfo’ refers to the field ‘PL_Admin_ShowInKit’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.

[rsFieldReference] The Hidden expression for the table ‘tblContactInfo’ refers to the field ‘PL_FA_ShowInKit’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.

[rsFieldReference] The Hidden expression for the table ‘tblWithdrawals’ refers to the field ‘PW_Comment’. Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.

 

 

Can Someone please help me out as to how should i get rid of these error messages, they are kinda driving me nuts.

 

Regards,

Karen

 

 

SSRS 2008 configuration Manager - "Invalid Class"

$
0
0
Reporting Services Configuration Manager is throwing an error when I try to "Find" the server. The manager starts up and takes me to the "Reporting Services Configuration Connection" window. I click on the "Find" button (leaving the default comptuer name as-is; the local machine)  and get the error message "Invalid Class" with the title "Reporting Services Configuration Manager".

I've been searching around the interner and only found one forum post with a similar problem to my own. It was on this forum and the advice seemed to be pointing towards a problem with WMI, but it seemed that the user never found a solution. I've downloaded and ran the WMI diagnostics program and the log does contain quite a few warnings, but I don't know how to go about solving most of them. I did run regsvr32 on some dll files though :)

I won't post any logs yet, as I have no idea where the problem may be based. Please advise and I will post the required information.

Find image in SSRS via Javascript

$
0
0

Hi

I know you can do the following to find any related tags:

var el = document.getElementsByTagName('span');

if(el[nr].innerHTML=="SPAN")

Inserting 'IMG' obviously finds all images but I need to find my image with its name. So if I put an image on my report and named it iMyImage and it's embedded how do I find iMyImage? I need to do a mouseover event on the image. It works perfectly with placeholder SPAN in textbox but I can't find my image to do the mouseover on.

Thanks

Sunette

Reporting Services on Windows7

$
0
0

My Report Manager Home page is "almost" blank!!!
All I see is: SQL Server Reporting Services,Home,Home, My Subscriptions, Help

Anyone any ideas on how I get the rest of the page back?  I'm running SS2005 on Windows 7. The solution below can't be done for there is no check box to uncheck in Directory Security.


Old Solution: 1. Goto IIS Manager (inetmgr) then uncheck the 'Allow annonymous access' in the Directory security of my Report virtual directory.2. Open IE and load up the Report webpage, it should be okay by now3. Goto Properties tab of the Report webpage, give access permission to NT AUTHORITY\IUSR and re-enable anonymous access from inetmgr


T-sql help to change ship date on the report

$
0
0

Hello All,

I've a SSRS report with the details in regards to shipping information. Currently in my report the 'Scheduled Ship Date' is set to following Monday, if we miss the 'Requested Delivery Date'. However, I need to change this report to set shipment date('Scheduled Ship Date') to Tuesday and Friday for the shipment having 'Requested Delivery Date' for this week or next week(current week and next week). For example- Jobs that have shipment date between 3/1/2015 - 3/7/2015 will have 'Scheduled Ship Date' as Tuesday and Friday of current week. If we miss the shipment for this week it should be scheduled for next Tuesday(3/9/2015) and Friday (3/13/2015). I need to follow this for current week(3/1/2015-3/8/2015) and following week(3/9/2015-3/15/2015) and after that all the following weeks will have 'Scheduled Ship Date' as Tuesdays. 
Can someone please help?

Below is the SQL:

USE tempdb;
GO
DECLARE @Date datetime;
SET @Date = GETDATE();
--SET @Date = '2014-07-25';
DECLARE @TEST_DATA TABLE
(
    DT_ID INT       IDENTITY(1,1) NOT NULL PRIMARY KEY CLUSTERED
   ,JobNumber		VARCHAR(10)   NOT NULL
   ,JobStatus       CHAR(1)       NOT NULL
   ,ExpectedDate    VARCHAR(10)   NOT NULL
   ,LastShippedDate VARCHAR(10)       NULL
);

INSERT INTO @TEST_DATA (JobStatus, JobNumber,ExpectedDate,LastShippedDate)
VALUES
 ('S', 'J012345','2015-01-23','2015-01-23')
,('S', 'J012346','2015-02-05','2015-02-09')
,('S', 'J012346','2015-03-02','2015-03-03')
,('O', 'J012347','2015-02-19',NULL)
,('O', 'J012347','2015-02-23',NULL)
,('O', 'J012347','2015-02-23',NULL)
,('O', 'J012347','2015-02-24',NULL)
,('O', 'J012348','2015-02-05',NULL)
,('O', 'J012349','2015-02-13',NULL)
,('O', 'J012350','2015-02-13',NULL)
,('O', 'J012351','2015-02-13',NULL)
,('O', 'J012362','2015-02-21',NULL)
,('O', 'J012363','2015-02-21',NULL)
,('O', 'J012364','2015-02-21',NULL)
,('O', 'J012365','2015-03-02',NULL)
,('O', 'J012366','2015-03-06',NULL)
,('O', 'J012372','2015-03-06',NULL)
,('O', 'J012378','2015-03-19',NULL)
,('O', 'J012367','2015-03-19',NULL)
;

SELECT
    J.DT_ID
   ,J.JobStatus /*O-Open, S-Shipped, I-Invoiced*/
   ,J.ExpectedDate 'Requested Delivery Date'
   ,J.LastShippedDate
   ,'Scheduled Ship Date'= CASE
   /* SHIPPED - SHOW LastShippedDate */
        WHEN j.JobStatus  ='S' OR j.JobStatus  ='I' OR j.JobStatus  ='V'  THEN Cast(j.LastShippedDate as DATE)
   /* MISSED SHIPMENT SET TO NEXT MONDAY */
        WHEN j.JobStatus <>'S'  AND DATEDIFF(dd,0,ExpectedDate)/7 <= DATEDIFF(dd,0,@Date) / 7 THEN
             DATEADD(DAY,((DATEDIFF(dd,0,@Date)/7) * 7) + 7,0)

   /* FUTURE SHIPMENTS */
        ELSE CAST(J.ExpectedDate AS DATE)
    END
    FROM @TEST_DATA J

Activate Javascript Function in Report Load

$
0
0

Hi

I have a javascript function that works. I put it in my ReportingServices.js file. If I have a hyperlink on my page and click it, it activates my function and my mouseover events works perfectly.

It is a hybrid based on the following: http://blogs.infosupport.com/reporting-services-javascript-injection/

How do I get my function to activate on page load so that the user don't have to click a hyperlink.

My function:

function mytooltipmouseover() { var el = document.getElementsByTagName('span');
var len = el.length;
for (j = 0; j < len; j++){
    if (el[j].innerHTML == "CHANGEME"){
        el[j].onmouseover = function () {
					var findTest = document.getElementsByTagName('span');
					var testlen = findTest.length;
                    for (i = 0; i < testlen; i++)
					{
						if(findTest[i].innerHTML=="test")
						{
							findTest[i].style.display = "block";
							findTest[i].innerHTML = "MouseOver worked.";
						}
					}
				}
				el[j].onmouseout = function () {
					var findTest = document.getElementsByTagName('span');
					var testlen = findTest.length;
					for (i = 0; i < testlen; i++) {
					    if (findTest[i].innerHTML == "MouseOver worked.") {
					        findTest[i].style.display = "none";
					        findTest[i].innerHTML = "test";
					    }
					}
	}

}
}
}


My hyperlink(Placeholder set as HTML in textbox):

="<a href=""javascript:mytooltipmouseover()"">test</a>"


My tried custom code - not sure how to get it to work...

Function WriteHTML() As String
System.Web.HttpContext.Current.Response.Write("<script language='javascript'>function mytooltipmouseover()<script>")

End Function 

Help would be greatly appreciated.

Thanks


SSRS Report Data Caching Problem in Internet Explorer

$
0
0

HI All,

We have setup reporting server in native mode and have deployed SSRS reports on reporting server and mapped it to sharepoint page with report viewer web part.

The changes on the data is not getting reflected on the report unless I close the browser completely and reopen the URL but at the same time for other rdl reportr, data is getting changed on same brower. so it doesn't seems to be the browser issue (not sure). Also the both reports are almost same.

Any Idea Guys...whats happening with the report or how I can make it work to refresh data properly. I already have tried "Auto Refresh" option in rdl and it refreshes the browser but data doesn't gets refreshed. Also I had deleted cookies, clear the cache but it also did not work for me.

Any help in this regard would be highly appreciated.

Thanks,

Nipendra Garg


Can't Delete Encrypted Content: Microsoft.ReportingServices.WmiProvider.WMIProviderException: Value cannot be null.

$
0
0

I'm having servere issues with our SSRS. We decided today to change our Admin password over the weekend, this has have the effect of locking me out of our SSRS. Unfortunately we don't have a backup of the Encryption keys either.....

So i'm resigned to deleting all encrypted content. however that isn't working either, i get the following message whatever i try to do.

Microsoft.ReportingServices.WmiProvider.WMIProviderException: Value cannot be null.
Parameter name: key
   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.ThrowOnError(ManagementBaseObject mo)
   at Microsoft.ReportingServices.WmiProvider.RSWmiAdmin.DeleteEncryptedInformation()
   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.DeleteEncryptedInformation()

I have tried the fixes in the following thread, none of these have worked. I have also deleted the key directly from the ReportServer database following this thread that didn't work either. I really don't want to create a new ReportServer instance, however i fear i'm heading that way.

Anyone have anything else i could try?

Many Thanks

Scotty.

Difference in terms of speed for SP and Query text.

$
0
0

Hi,

I have an SSRS report developed using Query type text select statement while there is an existing report with the same query and it was made in stored procedure. The query i used in my SSRS was came from the  the existing report that use  stored procedure and i put it in a query type text. Upon running the report it takes time to generate while the one using stored proc it takes only a minutes to generate the data. May i know twhat is the difference between the two in terms of speed and functionality. Thank you

 

Report model support in SQL 2012

$
0
0
What is the real scoop on report model support in 2012? I've tried to use the new tabular semantic model but unfortunately it can't fully replace the report models. So I've decided to go the report model route. It was my understanding that I just need to have 2008 BIDS. However I just read where somebody said that a report model can't be edited if the database that the report model references is SQL 2012. Can anybody confirm or deny this?

Asking login prompt while deploying ssrs 2008

$
0
0

I have configured my reporting server on sql 2008... after i have created sample rdl report, and setting the targetserverurl e.g)http\\Home\reprtserver\ , then am trying to deploy my solution it ask for username and password.. Then i opened report services configuration from configuration tools, in that am trying to navigate to the Url presnt on (Web service url), it's also asking for the same. Ever thing happening on my server it self.

 I am using windows authentication only.. no credentials have been set.

 

Any one help me on this....

Thx in advance

Deploy Report Model on Server without SQL Server 2008 BIDS

$
0
0

Hi,

I have developed a report model in BIDS Sql Server 2008 as per requirement but its need to be deployed on WindowsServer2008 R2 which have SQL Server 2012 installed so I can't open that report model solution there for deployment when I tried the conversion wizard starts which corrupts the solution because Report Model are not supported in SQL Server Data Tools.

Therefore I have tried the workaround as per link below; to copy the XML code data source and paste it in the bottom of XML code of Report Model so I can upload the smdl file but its not letting me doing this and complains about the table/views I have used in Model are missing.

https://social.technet.microsoft.com/Forums/sqlserver/en-US/3eccb01f-71c8-4aa6-9716-ee695bdb7422/report-model-to-have-multiple-data-sources?forum=sqlreportingservices

Can someone please advise how I can deploy this report model on the server which doesn't have SQL Server 2008 installed?

Thanks,

Viewing all 10045 articles
Browse latest View live


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