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

How to get LastWeek Friday to Thursday in SSRS report?

$
0
0

Hi guys,

i have a requirement to show last week Friday to Thursday,
in my report i have TimeFrame Parameter  and i have a Date Covered text box in report table, when i select LastWeek value in TimeFrame parameter, i have to show last Friday to Thursday in Date Covered text box, now i am able to show Monday to Sunday by using this expression in Date Covered text box:

=Trim(Parameters!DimDateFilterDateFilters.Label) = "Last Week", Format(dateadd(DateInterval.Day, 2-WeekDay(Today), DateAdd(DateInterval.Day, -7, Today)), "MM/dd/yyyy")
+" - "+
Trim(Parameters!DimDateFilterDateFilters.Label) = "Last Week", Format(dateadd(DateInterval.Day, 1-WeekDay(Today), Today), "MM/dd/yyyy")

Note:DimDateFilterDateFilters parameter's prompt name is Time Frame

and this is the scenario in report:

and i am building this report on CUBE data source using MDX.

Thanks in advance!!!

Regards,

Naveen N



How do you write an expression where you want to count the number of rows with 2 different criteria? The AND and ANDALSO are working for me...

$
0
0

This expression works:

=Count(Microsoft.VisualBasic.Interaction.IIF(Fields!Report_Number.Value Like "XYZ*",1,Nothing))

But I want to add a condition that says IIF(Fields!Responsible_Organization = "ABC")

so I want to count the number of rows where the report_number value starts with XYZ, and also the responsible_organization = ABC

thank you!

Kim

Passing value to parameters from Query string

$
0
0

Hi All,

I am not able to pass value to report parameter's from query string using below syntax.

http://[servername]/Reportserver/Pages/ReportViewer.aspx?[folder]/[reportname]&rs:Command=Render&[parameter]=[value]

Source for this report is analysis services multidimensional cube.

any help is appreciated.

Thank you.



Display Page Numbers as in TextBooks in SSRS 2012

$
0
0

Hi,

How do I display Page Numbers as we have it in some of the Text Books. 

Example: 

Page '1' should be towards right side of the first page,

Page '2' should be towards left side of the 2nd page.

Again, Page '3' should be towards right side of the third page and Page '4' should be towards left side of the fourth page.

This series should continue for the rest of the pages. I am trying to display this in footer and in the body too.

Thanks in advance.

Error when trying to creat project in VS 2012, Business Intelligence Templates, Reporting Services: "Operation is not valid due to current state of the object"

$
0
0

I have looked through the forums and none seem to be about getting the Error: "Operation is not valid due to current state of the object" when I try to create a project using VS 2012, Business Intelligence Templates, Reporting Service, and SQL Server 2012.

I have been following the first set of instructions in Learning SQL Server Reporting Services 2012.

This prevents the use of Reporting Services in SQL 2012.

What's wrong?

How do I fix this?

How to switch a circle indicator to green or yellow using the following dataset

$
0
0

test.Value

when count(test.Value)="r" then green indicator 

when count(test.Value)="mo" then green indicator 

else yellow indicator


=Switch(count(lcase(Fields!test.Value)="r")>1,1
count(lcase(Fields!test.Value)="mo")>=1,1,0
)

How to use switch a circle indicator to green or yellow using the above dataset ?

I am using indicator in LIST control on ssrs report and I want to change values between green and yellow based on the count




Filter or column group

$
0
0

Hi all

Struggling to display some data how I would like and was wondering if anyone knew if it was possible?

The dataset has various JobTypes that have a SUM figure for 3 years, each client can have different JobTypes associated with it.

SELECT
  SUM(Practice.ibvSalesByJob.JobBilledExVAT) AS Sum_JobBilledExVAT
  ,Practice.ibvSalesByJob.JobType
  ,Practice.ibvSalesByJob.ClientId
  ,Practice.ibvSalesByJob.ClientName
  ,Practice.ibvSalesByJob.ClientPartner
  ,Practice.ibvSalesByJob.ClientManager
  ,Practice.ibvSalesByJob.ClientCategory4
  ,Practice.ibvSalesByJob.[Year]
FROM
  Practice.ibvSalesByJob
WHERE
  Practice.ibvSalesByJob.[Year] IN (2016, 2015, 2014)
GROUP BY
  Practice.ibvSalesByJob.JobType
  ,Practice.ibvSalesByJob.ClientId
  ,Practice.ibvSalesByJob.ClientName
  ,Practice.ibvSalesByJob.ClientPartner
  ,Practice.ibvSalesByJob.ClientManager
  ,Practice.ibvSalesByJob.ClientCategory4
  ,Practice.ibvSalesByJob.[Year]

I would like the table/matrix to display as follows

ClientID | JobType | 2016 | 2015 | 2014

CJJID | 1 | £45 | £40 | £42

         | 5 | £60 | £56 | £80

MJDID | 1 | £80 | £90 | £32

           | 6 | £45 | £34 | £54

I am grouping the above on Client ID and then wish it to display each years overall figure on the same line as the relevant JobType.  Unfortunately I can only get near to the desired results by creating a Column group for Year, which then displays the years figures on a separate line for each JobType like below

CJJID | 1 | £45

         | 1 |        | £40

         | 1 |        |         | £42

Hope this makes sense, I looked into filter but I could only see an option to filter the table.

Any help/advice appreciated

Cheers



Cheers Chris

SSRS Advanced Parameters

$
0
0

For this project, it is required to add four parameters.

When I added the query, the "Define Query Parameters" dialog box popped up.

How can I define the parameter?



Checkbox

$
0
0

Hi,

I've a requirement to create a SSRS report which should have other drill through report

It should work like this ..

1:-Based on the selected parameters users can see various departments  plus the static section of list of subreports which grill through to respective subreports

2:-Now if the wants to see Subreport 2  for department3, he will select a checkbox in column c against department3 and then 

click on subreport3

Any way to do that or alternate way to do that .. Actually i want to keep the subreport section as static otherwise i have to add  columns of subreport name to al department rows.

I cannot make department or subreport as parameter 

Any suggestions

SQL Server Reporting Service 2008 R2-ERROR: Failed to create HttpRuntime 80131500

$
0
0

Our reports suddenly down several days ago,so we reinstalled the SSRS but still not work.

1.We can't open http:\\servername\reportserver or http:\\servername\report,it will return a HTTP 500 Internal Server Error.

2.We even can't access http:\\localhost\reportserver or http:\\localhost\report,also gave us HTTP 500 Internal Server Error.

3.Before we reinstall SSRS,we only backed up 2 databases:ReportServer and ReportServerTempDB,we didn't backup encryption keys.

4.I checked Authentiation setting:RSWindows* in RSReportServer.config,andAuthentication=”Windows” in Web.config,they should have no problem.

5.Someone told me that the problem is due to we didn't back up encryption keys,is that real?If yes,how can I fix this issue?

6.the database server and the report server are the same server.

Any reply will be very appreciated.

Thank you

below is the error logs:

<Header>
  <Product>Microsoft SQL Server Reporting Services Version 2009.0100.1600.01 ((KJ_RTM).100402-1539 )</Product>
  <Locale>English (United States)</Locale>
  <TimeZone>Central Daylight Time</TimeZone>
  <Path>C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\Logfiles\ReportServerService__10_23_2013_02_05_44.log</Path>
  <SystemName>KGCUSOKTULAP302</SystemName>
  <OSName>Microsoft Windows NT 6.1.7601 Service Pack 1</OSName>
  <OSVersion>6.1.7601</OSVersion>
  <ProcessID>9748</ProcessID>
  <Virtualization>Hypervisor</Virtualization>
</Header>
rshost!rshost!3eb4!10/23/2013-02:05:44:: i INFO: Application domain type ReportServer statistics: created: 33, unloaded: 33, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:44:: i INFO: Appdomain:48 ReportServer_MSSQLSERVER_0-45-130269855442137740 started.
rshost!rshost!3eb4!10/23/2013-02:05:44:: i INFO: Application domain type ReportServer statistics: created: 34, unloaded: 34, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:44:: i INFO: Appdomain:49 ReportServer_2-46-130269855444744995 started.
rshost!rshost!3eb4!10/23/2013-02:05:44:: i INFO: Application domain type ReportServer statistics: created: 35, unloaded: 35, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:44:: i INFO: Appdomain:50 ReportServer_3-47-130269855445994915 started.
rshost!rshost!3eb4!10/23/2013-02:05:44:: i INFO: Application domain type ReportServer statistics: created: 36, unloaded: 36, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:44:: i INFO: Appdomain:51 ReportServer_4-48-130269855447225305 started.
rshost!rshost!3eb4!10/23/2013-02:05:45:: i INFO: Application domain type ReportServer statistics: created: 37, unloaded: 37, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:45:: i INFO: Appdomain:52 ReportServer_5-49-130269855449051360 started.
rshost!rshost!3eb4!10/23/2013-02:05:45:: i INFO: Application domain type ReportServer statistics: created: 38, unloaded: 38, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:45:: i INFO: Appdomain:53 ReportServer_6-50-130269855451072715 started.
rshost!rshost!3eb4!10/23/2013-02:05:45:: i INFO: Application domain type ReportServer statistics: created: 39, unloaded: 39, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:45:: i INFO: Appdomain:54 ReportServer_7-51-130269855454246340 started.
rshost!rshost!3eb4!10/23/2013-02:05:45:: i INFO: Application domain type ReportServer statistics: created: 40, unloaded: 40, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:45:: i INFO: Appdomain:55 ReportServer_8-52-130269855456834065 started.
rshost!rshost!3eb4!10/23/2013-02:05:46:: i INFO: Application domain type ReportServer statistics: created: 41, unloaded: 41, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:46:: i INFO: Appdomain:56 ReportServer_9-53-130269855459128840 started.
rshost!rshost!3eb4!10/23/2013-02:05:46:: i INFO: Application domain type ReportServer statistics: created: 42, unloaded: 42, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:46:: i INFO: Appdomain:57 ReportServer_10-54-130269855461111135 started.
rshost!rshost!3eb4!10/23/2013-02:05:46:: i INFO: Application domain type ReportServer statistics: created: 43, unloaded: 43, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:46:: i INFO: Appdomain:58 ReportServer_11-55-130269855463191080 started.
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:46:: e ERROR: AppDomain ReportServer_11 failed to start. Error: The configuration system has already been initialized.
library!DefaultDomain!3eb4!10/23/2013-02:05:46:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: Failed to create HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_11. ---> System.InvalidOperationException: The configuration system has already been initialized.
   at System.Configuration.ConfigurationManager.SetConfigurationSystem(IInternalConfigSystem configSystem, Boolean initComplete)
   at System.Web.Configuration.HttpConfigurationSystem.EnsureInit(IConfigMapPath configMapPath, Boolean listenToFileChanges, Boolean initComplete)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError)
   at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId)
   --- End of inner exception stack trace ---;
appdomainmanager!ReportServer_11-55-130269855463191080!3eb4!10/23/2013-02:05:46:: i INFO: Appdomain:58 ReportServer_11-55-130269855463191080 unloading
appdomainmanager!DefaultDomain!3eb4!10/23/2013-02:05:46:: e ERROR: AppDomain:ReportServer_11-55-130269855463191080 failed to unload. Error: System.ArgumentNullException: Value cannot be null.
Parameter name: WaitCallback
   at System.Threading.ThreadPool.QueueUserWorkItemHelper(WaitCallback callBack, Object state, StackCrawlMark& stackMark, Boolean compressStack)
   at System.Threading.ThreadPool.QueueUserWorkItem(WaitCallback callBack)
   at System.Web.Hosting.HostingEnvironment.InitiateShutdownInternal()
   at System.Web.HttpRuntime.ShutdownAppDomain(String stackTrace)
   at System.Web.HttpRuntime.UnloadAppDomain()
   at Microsoft.ReportingServices.AppDomainManager.RsAppDomainManager.UnloadAspDomain(Boolean memoryRecycle)
   at Microsoft.ReportingServices.AppDomainManager.RsAppDomainManager.UnloadAspDomain(Boolean memoryRecycle)
   at Microsoft.ReportingServices.AppDomainManager.RsAppDomainManager.CreateHttpRuntime(RsAppDomainType appDomainType, String vdir, String pdir, Int32& domainId).
library!DefaultDomain!3eb4!10/23/2013-02:05:46:: e ERROR: Throwing Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: Failed to create Report Server HTTP Runtime, Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerAppDomainManagerException: An error occurred when attempting to start the application domain ReportServer within the Report Server service. ---> Microsoft.ReportingServices.Diagnostics.Utilities.ReportServerHttpRuntimeInternalException: An internal or system error occurred in the HTTP Runtime object for application domain ReportServer_11.  ---> System.InvalidOperationException: The configuration system has already been initialized.
   at System.Configuration.ConfigurationManager.SetConfigurationSystem(IInternalConfigSystem configSystem, Boolean initComplete)
   at System.Web.Configuration.HttpConfigurationSystem.EnsureInit(IConfigMapPath configMapPath, Boolean listenToFileChanges, Boolean initComplete)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateAppDomainWithHostingEnvironmentAndReportErrors(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.GetAppDomainWithHostingEnvironment(String appId, IApplicationHost appHost, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateObjectInternal(String appId, Type type, IApplicationHost appHost, Boolean failIfExists, HostingEnvironmentParameters hostingParameters)
   at System.Web.Hosting.ApplicationManager.CreateObject(String appId, Type type, String virtualPath, String physicalPath, Boolean failIfExists, Boolean throwOnError)
   at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId)
   --- End of inner exception stack trace ---
   at ReportingServicesHttpRuntime.RsHttpRuntime.Create(RsAppDomainType type, String vdir, String pdir, Int32& domainId)
   at Microsoft.ReportingServices.AppDomainManager.RsAppDomainManager.CreateHttpRuntime(RsAppDomainType appDomainType, String vdir, String pdir, Int32& domainId)
   --- End of inner exception stack trace ---;
rshost!rshost!3eb4!10/23/2013-02:05:46:: e ERROR: Failed to create HttpRuntime 80131500.
rshost!rshost!3eb4!10/23/2013-02:05:46:: e ERROR: Failed to get appdomain 80131500, pipeline=0x0000000000143A40.
rshost!rshost!3eb4!10/23/2013-02:05:46:: e ERROR: Error state. Internal abort for pipeline=0x0000000000143A40 ...


Retrieving sums from dataset

$
0
0

I'm trying to calculate a Deposit to Loan Ratio with data from separate datasets.  For the  deposit (top) number I'm using this Lookup expression:

(Lookup(Fields!Date.Value, Fields!Date.Value, Fields!Customer_Account_Current_Balance.Value, "dsDirectDeposits"))

It gives me the correct numbers, but you can see below that they're not associated with the correct dates:

What am I missing here ?   Thanks in advance.


J. Way


Failed to evaluate the FilterValue of the Chart

$
0
0

I have one report which has multiple charts and I have to make it dynamic.

Scenario is I have to pass chart name which I have to show using multiple parameters. If I will select one parameter it will show me 1 chart. If I will select two parameters it will show me two charts.

Showing and hiding chart is working fine. but Filters validation is getting failed.

For second chart I put this condition: IIF(Parameters!Task.Count > 1,Parameters!Task.Value(1),"None")

for third I put this condition IIF(Parameters!Task.Count > 2,Parameters!Task.Value(2),"None"

Funny thing is If I am using proper parameter name instead of array values from parameter it is working fine. For hiding property it is working find but while getting values from parameter array as it is multivalued parameter it showing me error

Thanks in advance for replies.

.


Jatinkumar Shah

Error deploy Reporting Services

$
0
0

SeverityCodeDescriptionProjectFileLine
Error[rsInvalidReportDefinition] 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: Data at the root level is invalid. Line 10, position 17969.

I am using the VS with ReportingServices version and I use parameters in my project

Microsoft SQL Server Reporting Services Designers 
Version 13.0.1400.361

SQL 2014


[SSRS 2016] What is in store for the .net "Local Mode"

$
0
0
I have a lot of projects that use the rdlc type of reports to be rendered in local mode. I've installed the new Data Tools for Visual Studio 2015 Preview but I can't get ReportViewer new version or a new rdlc template for 2016 version.

Does the 2016 version still support the local mode reports with the new layout and features ??


Thanks

Microsoft Power BI on-premises

$
0
0
Is there Microsoft Power BI pro on-premises? or only cloud-based.


Report Server Windows service 'ReportServer' is not running - Error Help...

$
0
0
Hi,
   I need help in Starting Reporting Service, have problem in Starting My Reporting Server.Below i have provided details of what i did,please help me.

   1) First i tried to run My Reports in my Reporting Server Portal,but i could not run it,it showed me an Error as below

     Reporting Server Portal Error:
    "The Report Server Windows service 'ReportServer' is not running. The service must be running to use Report Server. (rsReportServerServiceUnavailable) Get Online Help "


   2) So i checked whether the SQL Server Reporting Service is Running,but it's not running.So i started it,but this also showed me a Error as below

     Service Error:
     "Could not start the SQL Server Reporting Services(MSSQLSERVER)Service on Local Computer.
       Error 1053: The Service did not Respond to the Start or control request in a timely fashion"
      I don't know why this Error came.

 
   3)I checked the Event Viewer about what the Error actually is when starting SQL Reporting Service,it shows
   
     Event Viewer Error:
      "Event ID: 107. Error:Report Server(MSSQLSERVER) could not connect to Report Server Database."


   4)As the database could not be connected, i checked the Database Setup in Reporting Services Configuration .
      I selected SQL Server Credentials and typed User Name and Password,but in Task Status after submitting, Assigning Reporting Services Rights to User is not enabled.
      So i tried with Service Credentials in the Credentials Type then Task Status Completes Successfully.
 
   5)Then i tried to Start Server Status in Reporting Services Configuration but it also showed an error as,
    
    Server Status Error:
    "System.InvalidOperationException:Cannot Start Service Report Server on Computer
      Server1.-->System.ComponentModel.Win32Exception: The Service did not Respond to the Start or control request in a timely fashion"


      I don't know what to do and Why i cannot not start or access my Reporting Services. Please help me

     Thanking You...Please Help Me...

ssrs 2008: csv export keeps putting quote qualifier around my fields

$
0
0

intended output of csv and how it appears in report preview:

"abc","123"

actual output of csv:

""abc"",""123""

csv render settings used:

<Extension Name="CSVNOHEADERNOQUALIFER" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering"><OverrideNames><Name Language="en-US">CSV NO HEADER (comma del)</Name></OverrideNames><Configuration><DeviceInfo><NoHeader>true</NoHeader><FieldDelimiter>,</FieldDelimiter><ExcelMode>False</ExcelMode><Qualifier></Qualifier><Encoding>ASCII</Encoding></DeviceInfo></Configuration></Extension>

My understanding is the qualifier should only be triggered if a field delimiter is present in a field.  But this is not the case.  How do I use double quotes  around my fields without the csv export wrapping it in another set of double quotes?

thanks




Datazen Publisher "Sample Data" - will that be coming to Mobile Report Publisher soon?

$
0
0
When Microsoft bought Datazen about a year ago, the "Datazen Publisher app" came with over a dozen "Sample Dashboards" that we could reverse engineer and see how they were constructed with "Simulated Data" ... I don't see that in "Preview 2"?

The NT service 'ReportServer' could not be started.Error code 0x84B20001.

$
0
0

Hi All ,

I am trying to install SSRS 2008 R2 Enterprise Addition ,the installation goes fine and the services start up but once i install the SP2 then the service don't come up and throws me the following  error.

TITLE: SQL Server Setup failure.
------------------------------

SQL Server Setup has encountered the following error:

The NT service 'ReportServer' could not be started.

Error code 0x84B20001.

Can some one please throw some light ..

Thanks,

Jack

Chart ?

$
0
0
Can a chart be converted to an image? JPG?  Can a chart be put inside a table or matrix column?

LISA86

Viewing all 10045 articles
Browse latest View live