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

Cascading Parameters Not Updating after Initial setting

$
0
0

Running SSRS in VS2012 on Windows 7.

My report has 3 parameters: Transaction Period, Transaction Start Date, and Transaction End Date.

The user is allowed to see and select the Transaction Period from a dropdown that's populated from the database (in the format of "2016-03", for March 2016).

The Transaction End Date is automatically set via a Default Values expression that expands the "2016-03" value out to a full date: 03/31/2016.

Finally, the Transaction Start Date is automatically set to a date 13 months prior to End Date via a Default Values expression.

The very first time I select "Transaction Period", the Transaction Start and Transaction End Dates automatically update correctly.  The next time I choose a different Transaction Period, the Transaction Start/End Dates do *not* update; they just remain the same.

Question: How can I get these parameters to update with each selection change in the Transaction Period dropdown?

Thanks.


Report Server Initializes Every 12 Hours

$
0
0

I've just noticed that my report server initializes every 12 hours. It's not something I configured. Is it some standard setting. If so why does it do that? If not how do I change it?

Below is an extract from my report server logs

rshost!rshost!1020!05/16/2016-03:39:13:: i INFO: Derived memory configuration based on physical memory as 67108340 KB
servicecontroller!DefaultDomain!1020!05/16/2016-03:39:13:: i INFO: Recycling the service from the default domain
rshost!rshost!1020!05/16/2016-03:39:18:: i INFO: Application domain type WindowsService statistics: created: 73, unloaded: 73, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!1020!05/16/2016-03:39:18:: i INFO: Appdomain:75 WindowsService_73 started.
resourceutilities!WindowsService_73!1020!05/16/2016-03:39:18:: i INFO: Reporting Services starting SKU: Standard
servicecontroller!WindowsService_72!1020!05/16/2016-03:39:18:: i INFO: Service controller exiting.
appdomainmanager!DefaultDomain!1020!05/16/2016-03:39:18:: i INFO: Appdomain:74 unregistered.
appdomainmanager!DefaultDomain!1020!05/16/2016-03:39:18:: i INFO: Appdomain:74 WindowsService_72 unloading.
appdomainmanager!DefaultDomain!360!05/16/2016-03:39:18:: i INFO: AppDomain:74 0 pending unload(s)
library!WindowsService_73!eec!05/16/2016-03:39:18:: i INFO: Catalog SQL Server Edition = Standard
crypto!WindowsService_73!eec!05/16/2016-03:39:18:: i INFO: Initializing crypto as user: Domain\user
crypto!WindowsService_73!eec!05/16/2016-03:39:18:: i INFO: Exporting public key
crypto!WindowsService_73!eec!05/16/2016-03:39:18:: i INFO: NT Service not activated
library!WindowsService_73!eec!05/16/2016-03:39:19:: e ERROR: Throwing Microsoft.ReportingServices.Library.ReportServerNotActivatedException: , Microsoft.ReportingServices.Library.ReportServerNotActivatedException: The report server installation is not initialized.;
library!WindowsService_73!eec!05/16/2016-03:39:19:: e ERROR: ServiceStartThread: Exception caught while starting service. Error: Microsoft.ReportingServices.Library.ReportServerNotActivatedException: The report server installation is not initialized.
library!WindowsService_73!eec!05/16/2016-03:39:19:: e ERROR: ServiceStartThread: Attempting to start service again...


rshost!rshost!10c0!05/16/2016-15:39:19:: i INFO: Currently registered url http://+:80/Reports/ on endpoint 3
rshost!rshost!58c!05/16/2016-15:39:19:: i INFO: Endpoint 4 is disabled and no url is registered vdir=/ReportServer/ReportBuilder, pdir=C:\Program Files\Microsoft SQL Server\MSRS10_50.MSSQLSERVER\Reporting Services\ReportServer\ReportBuilder.
rshost!rshost!1020!05/16/2016-15:39:19:: i INFO: Derived memory configuration based on physical memory as 67108340 KB
servicecontroller!DefaultDomain!1020!05/16/2016-15:39:19:: i INFO: Recycling the service from the default domain
rshost!rshost!1020!05/16/2016-15:39:23:: i INFO: Application domain type WindowsService statistics: created: 74, unloaded: 74, failed: 0, timed out: 0.
appdomainmanager!DefaultDomain!1020!05/16/2016-15:39:23:: i INFO: Appdomain:76 WindowsService_74 started.
resourceutilities!WindowsService_74!1020!05/16/2016-15:39:24:: i INFO: Reporting Services starting SKU: Standard
servicecontroller!WindowsService_73!1020!05/16/2016-15:39:24:: i INFO: Service controller exiting.
appdomainmanager!DefaultDomain!1020!05/16/2016-15:39:24:: i INFO: Appdomain:75 unregistered.
appdomainmanager!DefaultDomain!1020!05/16/2016-15:39:24:: i INFO: Appdomain:75 WindowsService_73 unloading.
appdomainmanager!DefaultDomain!f74!05/16/2016-15:39:24:: i INFO: AppDomain:75 0 pending unload(s)
library!WindowsService_74!2030!05/16/2016-15:39:24:: i INFO: Catalog SQL Server Edition = Standard
crypto!WindowsService_74!2030!05/16/2016-15:39:24:: i INFO: Initializing crypto as user: DOMAIN\user
crypto!WindowsService_74!2030!05/16/2016-15:39:24:: i INFO: Exporting public key
crypto!WindowsService_74!2030!05/16/2016-15:39:24:: i INFO: NT Service not activated
library!WindowsService_74!2030!05/16/2016-15:39:24:: e ERROR: Throwing Microsoft.ReportingServices.Library.ReportServerNotActivatedException: , Microsoft.ReportingServices.Library.ReportServerNotActivatedException: The report server installation is not initialized.;
library!WindowsService_74!2030!05/16/2016-15:39:24:: e ERROR: ServiceStartThread: Exception caught while starting service. Error: Microsoft.ReportingServices.Library.ReportServerNotActivatedException: The report server installation is not initialized.
library!WindowsService_74!2030!05/16/2016-15:39:24:: e ERROR: ServiceStartThread: Attempting to start service again...

Please suggest How can I achieve this ?

$
0
0

Student ID

Student Name

Branch

Location

Specialization

Admission Mode

2005

Bhopal

Management Qouta

12

Prakash Ahuja

CSE

Bhopal

Embedded

Management Quota

14

Nidhi Pant

CSE

Bhopal

MicroController

Management Quota

General

11

Navnit Kaur

CSE

Bhopal

Embedded

General

17

Sachin Goyal

CSE

Bhopal

MicroController

General

 Total students got admitted through Management Quota : 2

Total students got admitted through General category : 2

Percentage of Students got admission through Management quota  : 2/2+2 = 50%

Total number of students who took admission from Bhopal : 4

Total number of students who took admission in the year 2005:4

Grouping Level1: Year

Grouping Leve2: Location

Grouping Level 3: Admission Mode

I want to repeat the footer rows highlighted in yellow everytime.But there can be a scenario where the number of students taken admission Management quota is zero.

In that case How can I evaluate the number of students in management quota?

SSRS adjacent row group

$
0
0

Fig 1--This is what I am trying to create: 

Dataset tables

USE [AdventureWorks2012]Production.Product 
Production.ProductSubcategory ,   Production.ProductCategory, Production.ProductPhoto
Production.ProductDescription, Production.ProductModel
Production.ProductModelProductDescriptionCulture
Filter
Production.ProductModelProductDescriptionCulture.CultureID = 'en')
Production.ProductPhoto.LargePhotoFileName not like '%no_image%'

I use this query:

SELECT PS.Name AS Subcategory
      ,PM.Name AS Model
	  ,PC.Name AS Category
	  ,PD.Description
	  ,PP.LargePhoto
	  ,PP.LargePhotoFileName
	  ,P.Name AS Product
	  ,P.ProductNumber
	  ,P.Color
	  ,P.Size
	  ,P.Weight
	  ,P.StandardCost
	  ,P.Style
	  ,P.Class
	  ,P.ListPrice
FROM [Production].[Product] AS P
INNER JOIN [Production].[ProductSubcategory] AS PS ON P.ProductSubcategoryID=PS.ProductSubcategoryID
INNER JOIN [Production].[ProductCategory] AS PC ON PS.ProductCategoryID=PC.ProductCategoryID
INNER JOIN [Production].[ProductProductPhoto] AS PPP ON P.ProductID=PPP.ProductID
INNER JOIN [Production].[ProductPhoto] AS PP ON PPP.ProductPhotoID=PP.ProductPhotoID
LEFT OUTER JOIN [Production].[ProductDescription] AS PD
INNER JOIN [Production].[ProductModel] AS PM
INNER JOIN [Production].[ProductModelProductDescriptionCulture] AS PMPDCL ON PM.ProductModelID=PMPDCL.ProductModelID
ON PD.ProductDescriptionID=PMPDCL.ProductDescriptionID ON P.ProductModelID=PM.ProductModelID
WHERE PMPDCL.CultureID = 'en'
AND PP.LargePhotoFileName NOT LIKE '%no_image%'


This is what I have so far created. 


How to add row groups like the Fig.1?

SSRS Dynamic Data Source through an Expression-based Connection String

$
0
0

I wanted to use single query to retrieve data from AdventureWorks2012 and AdventureWorksDW2012 in one dataset:

1) I added "AdventureWorks2012" and "AdventureWorksDW2012" to Data Sources;

2) I created two parameters--@ServerName,@DatabaseName, and added two datasets

--servername--
select srvname from sys.sysservers

--databasename--
SELECT name as DatabaseName
FROM sys.databases
where database_id in (7,8)

3) I created a "DynamicDS" data source as below:

4) When I tried to create a dataset by using the "DynamicDS", I got an error message:

How can I do with it? Please help me. Thanks.

SSRS 2008: MDX Query and Dimension Properties

$
0
0

Hello all,

I'm building some MDX reports where I have to show some dimension properties in the report. An example for one of my MDX queries is:

select
[Measures].[Total Costs]on columns,
[Projects].[Project].members
DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME,
[Projects].[Project].[Coordinator],
[Projects].[Project].[Head]onrowsfrom ProPlan

If I preview this query in Visual Studio's query designer the resultset will contain columns for the Coordinator and Head attributes. But when previewing the report always the following warning messages are shown for both attributes:

[rsMissingFieldInDataSet] The dataset ‘Projects’ contains a definition for the Field ‘Head’. This field is missing from the returned result set from the data source.
[rsErrorReadingDataSetField] The dataset ‘Projects’ contains a definition for the Field ‘Head’. The data extension returned an error during reading the field. There is no data for the field at position 5.

Do you have any idea what could be the problem?
Visual Studio 2008 9.0.30729.1 SP, Microsoft SQL Server Reporting Services Designers Version 10.0.2799.0

One important thing to care about is that Projects is a parent/child dimension. With normal dimensions everything works fine. If the query designer didn't show the attribute columns I would accept it as a disadvantage of parent/child dimensions. But I don't understand why it is working in the query designer (and in Management Studio), but not at report execution.

Thanks in advance and best regards,
Gerald 

 

rdlc print layout size varies with resolution on Surface Pro (Win 8.1, winforms)

$
0
0

We have a winforms application with local rdlc reports.  On Surface Windows 8 Pro devices only, reports render such that they are scaled down and don't fill the page.  If resolution is lowered on the device, the report scales up to fill the page. This affects the appearance in print layout and well as the actual printed size.

If we export to pdf, it renders to fill the page (as expected).  If you print to pdf or to printer, the scale is shrunken.

If we change the resolution settings so that "Make  text and other items larger or smaller" is set to small, the issue is resolved except the tablet is not very usable on this setting.

Is this a bug?  Is there a work around?  Thanks for any help.


Folder & Associated Reports in ReportServerDb But Not Showing in Report Manger

$
0
0

In SSRS, we have a few folders and associated reports that I can see in the "Catalog" table of the ReportServerDb. However, when looking for the folder and reports in Report Manager they are not there.

I thought it could be a security issue, but I believe I'm logged into the Report Manager as the same user which is the database owner. I also ran the below query and it shows that the user name has the following roles assigned: Browser, Publisher, My Reports, Content Builder, and Report Builder.

Any ideas?

 SELECT C.Name
      ,U.UserName
      ,R.RoleName
      ,R.Description
      ,U.AuthType
  FROM Reportserver.dbo.Users U
  JOIN Reportserver.dbo.PolicyUserRole PUR
    ON U.UserID = PUR.UserID
  JOIN Reportserver.dbo.Policies P
    ON P.PolicyID = PUR.PolicyID
  JOIN Reportserver.dbo.Roles R
    ON R.RoleID = PUR.RoleID
  JOIN Reportserver.dbo.Catalog c
    ON C.PolicyID = P.PolicyID
 WHERE c.Name = @ReportName
ORDER BY U.UserName

 



Multiple queries in single report

$
0
0

Hi,

 

I would like to use more than 1 sql query in the report and I have created different dataset for each and every query. All queries will return data based on a parameter. The first dataset only returns all the data. Rest of the dataset returns only First or last or sum values. But I want to  pull all the records from other datasets too..

How we can achieve this. Please help me to resolve this issue.

Thanks, Sengwa

 

 

Whitespaces below Tablix after exporting RDLC to MS Word

$
0
0

Hi, I would like to request some help in this community in regards to RDLC.

After i have exporting my RDLC to MS Word, there is this whitespace below every tablix and the space various in length.

I have tried many methods that i researched around but doesn't work at all:

  • ConsumeContainerWhitespace set to "true"
  • Set InteractiveSize to "0,0"
  • KeepTogether both "true" and "false"

The more interesting fact is that this only occurs in MS Word, it doesn't show up in MS Excel or .mht.

Can anyone explain to me the reason for this and a solution? Thank you so much.

Move\Migrate SSRS database to 2016

$
0
0

I have the SQL Server \SSRS 2016 RC downloaded and configured so that we can start testing the SSRS environment. I tried moving the 2014 SSRS databases over to the new test box using the following steps.

1) Backed up and restored ReportServer database.

2) Backed up and restored ReportServerTempDB database.

3) Backed up and restored the encryption keys.

4) Restarted the SSRS 2016.

The SSRS home page comes up fine. I see all my folders and reports etc from 2014. But, normally when I restore the encryption keys in the past, all the subscription SQL Agent jobs gets moved as well or gets created as well. But this time, I didn't see this happen. There is nothing under SQL Agents Jobs. Tried searching the blogs to see if there was any mention of any new feature or new ways of doing the migration but not seeing a whole lot of info. Has anyone gone through the SSRS migration? Am I doing something or missing something? 


NM

Cannot read the next data row for dataset (rsErrorReadingNextDataRow)

$
0
0

I have a report which runs fine on Visual Studio. But when I run from report server, I get below error:

  • An
    error has occurred during report processing. (rsProcessingAborted)
    • Cannot
      read the next data row for the dataset Enrolments.
      (rsErrorReadingNextDataRow)
      • For
        more information about this error navigate to the report server on the local
        server machine, or enable remote errors

      Enrolments:

      SELECT DISTINCT CAST(e.College_Year AS VARCHAR(10)) AS ClgYear,
              e.Code,
              e.Title,
              e.Coordinator_Code,
              e.Coordinator_Forename,
              e.Coordinator_Surname,
              st.Learner_ID,
              st.Surname,
             st.Forename_1,
             st.Age,
             case when st.Gender = 'Female' then 'F'
                  else 'M'
             end as Gender,
             case when st.English_1St_Lang = '1' then 'Yes'
                  else 'No'
             end as Eng_1st_Lang,
             st.Ethnicity,
             qe.QoE_Grade as GCSE_English,
            qm.QoE_Grade as GCSE_Maths,
             sc.Forename_1 + ' ' +sc.Surname as ParentName,
             '' as Email,
             sc.Home_Telephone_No as ParentHomeTelephone,
             sc.Mobile_Telephone_NO as ParentMobileTelephone,

      case when df.STLD_Student_ID is not null then 'Y' else 'N' end as Learner_Difficulty_YN,
      -----------------------------------------------------
      ----st.Learning_Difficulty,
      -----------------------------------------------------
      case when ds.STLD_Student_ID is not null then 'Y' else 'N' END AS Disability_YN
             --st.Learning_Difficulty + ' - ' + st.Disability as [Learning Difficulty Disability]
      ,Class_Code
      ,e.Qualification_Mgmnt_Code_1
      ,e.Qualification_Department
      ,Qualification_Mgmnt_Code_2
      ,Qualification_Section
      ,st.Photo_File_Name
            
      --CASE WHEN Completion_Stat_Q19 = 1 THEN 'Continuing'
      --     WHEN Completion_Stat_Q19 = 2 THEN 'Completed'
      --     WHEN Completion_Stat_Q19 = 3 THEN 'Withdrawn'
      --      WHEN Completion_Stat_Q19 = 4 THEN 'Transferred'
      --END AS Completion_Stat

      FROM    dbo.IM_EN_Enrolments_vw e JOIN
              dbo.IM_ST_Students_vw st ON
              CAST(e.College_Year AS VARCHAR(10)) = CAST(st.College_Year AS VARCHAR(10))
         AND e.Learner_ID = st.Learner_ID
        
         left join
           dbo.IM_ST_Student_Contacts_vw as sc on
           st.Learner_ID = sc.Learner_ID
           ------------------------------------
           and sc.Emergency_Priority = '1'
           ------------------------------------

      left join dbo.IM_QoE_EnglishLang_GCSE_vw qe on st.Learner_ID = qe.Learner_ID
        left join dbo.IM_QoE_MathsGCSE_vw qm on st.Learner_ID = qm.Learner_ID
      left join dbo.STLDLearnerLLDD df on df.STLD_Student_ID = st.Learner_ID and
      CAST(df.STLD_Year AS VARCHAR(10)) = CAST(e.College_Year AS VARCHAR(10))and df.STLD_LLDDCode IN ('8','10','11','12','13','14','15','94','96')
      left join dbo.STLDLearnerLLDD ds on ds.STLD_Student_ID = st.Learner_ID
      and CAST(ds.STLD_Year AS VARCHAR(10))  = CAST(e.College_Year AS VARCHAR(10)) and ds.STLD_LLDDCode IN ('4','5','6','7','9','16','93','95','97')
      WHERE CAST(e.College_Year AS VARCHAR(10)) =@College_Year -- '2013'
      AND Qualification_Mgmnt_Code_2 = @QualSection
      AND e.Code = @Qualification_Code --'12621/F11' 
      and CAST(e.College_Year AS VARCHAR(10))> '2012'

      AND Start_date <> isnull(Actual_End_Date, '01-Aug-2020')

      ORDER BY  st.Surname, st.Learner_ID

      Any help is much appreciated.

      Thanks.

      Ar

Reports Builder 3.0: SharePoint List datasource - How to retrieve items from sub-folders?

$
0
0

I am able to create an SSRS Report using Report Builder 3.0 using a SharePoint List datasource . However it only retrieves the items in the root folder of the library that I have specified. Does anyone know how to make it get the items in the sub-folders?

In Report Builder's Query Designer window I can see the xml text of the query and it looks somewhat like a CAML query. I tried adding <ViewAttributes Scope=\"Recursive\" /> to it in various places but it did not like that.

Does anyone know how to do this? Thanks!

Nick

Printing an SSRS-2014 Report on Client Prompts for Elevation

$
0
0

Environment:

  • Servers: Windows Server 2012 R2, SQL Server 2014 , both are 64bit
  • Desktops: Reports are calling through Citrix interface ... which is using Windows2012 R2  64-bit , Internet Explorer 11
  • Users: All users are standard users. 

We are using SSRS reports  which works great up until a user clicks the print button on the page.  At this point UAC pops up requiring admin credentials(SSRS Report server security permissions).  If the user restarts their browser, they will once again be prompted for credentials when they go to print SSRS reports again. 

Please help to resolve this issue.


--------------------------------- Devender Bijania

Count Distinct Values

$
0
0

I have two datasets.

Dataset1:

CREATE TABLE #a (Ca nvarchar(20),PERSON NVARCHAR(20));

INSERT INTO #A VALUES ('A','R'),('A','T'),('A','W');
INSERT INTO #A VALUES ('B','R'),('B','M'),('B','R');
INSERT INTO #A VALUES ('C','M')

SELECT * FROM #A

Dataset2:

CREATE TABLE #B (TT nvarchar(20),Ca nvarchar(20));

insert into #b select 'O','A'
insert into #b select 'O','B'
insert into #b select 'O','C'

select * from #b

I insert the table using dataset2 as Dataset Name. However as I can get distinct person in group A,B,C, I do not know how to get total group O person number. Total number should be 4. It would be appreciate that you can provide some ideas.


ssrs

$
0
0

hi friends,

I have a doubt in SSRS,in the below snapshot, we will get records for the condition  acnt_count<>0 and cust_count<>0, then what is the case when i want the records for the condition acnt_count<>0 or cust_count<>0(not in sql, only in ssrs). Thanks in advance

then how to write the expression, if i want the records for acnt_count<>0 or cust_count<>0 (not in sql, only in ssrs)

Filter by blank Value or Null

$
0
0

I have values in a field that I want to filter by, how do I filter by values that are blank and/or null?

Editable Drop down parameter in SSRS

$
0
0
Is it possible to have an editable dropdown list parameter in SSRS?
i.e. User should be able to type in the value inside the dropdown paramter loist in addition to the normal 'select from list' operation....

How to check a range in SSRS expressions as between is not supported in SSRS

$
0
0

I have a table for a user who has following columns and values 

RatingID | MiddleRatingID
4                     10.5
10
11
12

Below is the switch expression I am using

=switch(SUM(Fields!RatingID.Value)=12,4,
SUM(Fields!RatingID.Value) between 12 and (Fields!MiddleRatingID.Value),3,
SUM(Fields!RatingID.Value) between 4 and  (Fields!MiddleRatingID.Value),2,
SUM(Fields!RatingID.Value)=4,1
)

SSRS  doesnt support between hence looking for help to check range  for the below 2 expressions 

Note: I have decimal MiddleRatingID 10.5.


SUM(Fields!RatingID.Value) between 12 and (Fields!MiddleRatingID.Value),3,
SUM(Fields!RatingID.Value) between 4 and  (Fields!MiddleRatingID.Value),2,




Looking for solution: Clickable Calendar Report; clicking on a day in the calender will display a report.

$
0
0

Hi all,

Is it possible to create a report based on Calendar days, for example I have 4 Calendars in the web display, each Calendar contains its own report category. If I click on a day in the Calendar a report will display.

I prefer to use xml or csv as the source for the data to be displayed in the report.

In a folder I have the following xml files:

Account_010116.xml

Account_020116.xml

Account_030116.xml

Account_040116.xml

In the Calendar if I click on 2nd of Jan 2016 a report will display the content of Account_020116.xml.

Is there such solution in SSRS? Or a third party software?

I appreciate any information about the solution.

Thank you in advance,


Viewing all 10045 articles
Browse latest View live


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