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

datetimeoffset in report parameters

$
0
0
This is with SSRS 2008 SP1.
Since upgrading to SSRS 2008 SP1 (from SSRS 2005 SP2) we have had trouble with dates.
We have some roprts where people enter a start & end date. The parameter types is datetime. Before the upgrade they could enter 1/1 and it would resolve automatically to 1/1/2009 12:00am - since the upgrade it instead resolves automatically to 1/01/2009 12:00:00 AM +11:00, which causes the report to throw the error: The version of SQL Server in use does not support datatype 'datetimeoffset'.
Our SQL servers are all still on SQL 2005 - its only RS (which is on a separate server) that  we have upgraded. Does anyone have any solutions to make it not add the time offset onto it? Thanks!.

SSRS LookUp Function

$
0
0
Need help!
I have two datasets that need to be built in a single table.
In both the datasets I have a column "Time" as common. So I am using a LOOKUP function to use 2 datasets in a single table.

The problem is, when there is no data for a particular time in dataset1 I am not able to show time for the rows of dataset2.

Here is an example,

Time

Dataset1Col1

Dataset1col2

Dataset2Col1

Dataset2Col2

1:00

valueA

ValueD

ABC

123

2:00

valueB

ValueX

XYZ

456




DEF

789(This is for time 3:00)



How can I display time even there is no data for the same from dataset1. 

(I can just reverse the datasets but there may be cases when there is no data coming from dataset2 also for a particular time)

Accessibility and SSRS reports

$
0
0
I have some reports designed using 2008 which are basically inaccessible to blind users with screen readers. What is Microsoft's advice on how to upgrade them to make them accessible? We are currently using SQL Server 2012. In particular, the controls at the top are very painful to use with a keyboard; comboboxes, for example, don't allow users to press F4 to expand the combo box in order to arrow through the options and instead a refresh occurs every time you press the down arrow. This is not good if you're using a screen reader.

Query XML SSRS Report data for those Reports which have sub reports

$
0
0

I am trying to query the SSRS XML Catalog for those SSRS Reports which have subreports, and to list each of those subreports with their parent report - in the following format:

Parent Report SubReport

Parent Report SubReport2

etc.

This is my code so far, but I'm not certain where to put the filters and filter syntax on the XML Query portion:

Drop TABLE prmcustomreports.dbo.tblReportDefinition1


CREATE TABLE prmcustomreports.dbo.tblReportDefinition1
(
	[rowid] [int] IDENTITY(1,1) NOT NULL,
	Servername varchar(255) default @@ServerName,
	Ver varchar(max) default @@Version,
    report_name varchar (max),
    report_path varchar (max),
    Report_N2 varchar (max),
    DataSource varchar (max),
    ContentXML XML,
    LastUpdatedDate datetime DEFAULT (getdate()) ,
    Element varchar(max),
    Attribute varchar(max),
    Val varchar(max),

CONSTRAINT [tblPKReportDefinition1] PRIMARY KEY CLUSTERED
(
	[ROWid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]


Drop TABLE prmcustomreports.dbo.tblReportDefinition2


CREATE TABLE prmcustomreports.dbo.tblReportDefinition2
(
	[rowid] [int] IDENTITY(1,1) NOT NULL,
	Servername varchar(255) default @@ServerName,
	Ver varchar(max) default @@Version,
    report_name varchar (max),
    report_path varchar (max),
    Report_N2 varchar (max),
    DataSource varchar (max),
    ContentXML XML,
    LastUpdatedDate datetime DEFAULT (getdate()) ,
    Element varchar(max),
    Attribute varchar(max),
    Val varchar(max),

CONSTRAINT [tblPKReportDefinition2] PRIMARY KEY CLUSTERED
(
	[ROWid] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]





Truncate table prmcustomreports.dbo.tblReportDefinition1
Truncate table prmcustomreports.dbo.tblReportDefinition2


Insert into prmcustomreports.dbo.tblReportDefinition1


(
    report_name ,
    report_path ,
    Report_N2 ,
    DataSource,
    ContentXML
)

SELECT
c.[Name],
c.[Path],
d.Name,
cd.path AS [Data Source],
CONVERT(varchar(max), CONVERT(varbinary(max), C.[Content])) Content
FROM [dbo].[Catalog] (nolock) c

LEFT JOIN dbo.DataSource (nolock) d
ON c.ItemID = d.ItemID

LEFT JOIN [dbo].[Catalog] (nolock) cd
ON d.link = cd.ItemID

WHERE (c.[Type]  = 2 OR c.[Type]  = 6 or c.[Type]  = 5)
AND LEN(c.Name) <> 0

ORDER BY c.[Name], c.[Path]

--Select * from #ReportDefinition




Insert into prmcustomreports.dbo.tblReportDefinition2


(
    report_name ,
    report_path ,
    Report_N2 ,
    DataSource,
    ContentXML,
    Element ,
    Attribute,
    Val
)



SELECT
	report_name ,
    report_path ,
    Report_N2 ,
    DataSource,
    ContentXML,

	x.y.value('local-name(..)', 'VARCHAR(MAX)') parentElementName,
	x.y.value('local-name(.)', 'VARCHAR(MAX)') as attribute,
    x.y.value('.', 'VARCHAR(MAX)') as val
FROM PRMCustomReports..tblReportDefinition1 rd
	CROSS APPLY rd.ContentXML.nodes('//*[text()], //@*') AS x(y)


John

SSRS stored procedure with 2 IF conditions

$
0
0

Experts,

I have an SP that has 2 IF conditions, based on the condition i'll be calling a tablix in my SSRS report. For e.g.

Create Procedure SP1 AS @Param1 VARCHAR(50), @Param2 VARCHAR(50), @ViewBy BIT BEGIN IF (@ViewBy = 1) BEGIN IF (@Param1 = 'ABC') BEGIN SELECT.. FROM Table END END IF (@ViewBy = 0) BEGIN EXEC SP2 @Param1, @Param2 -- Calling this stored procedure inserts data in to one of the tables

SELECT Col1, Col2 FROM SomeTable END END

In my SSRS report, I have 2 datasets and tablixes, I have populated the 1st tablix with 5 columns coming from @ViewBy = 1 condition, in my 2nd tablix I only have 2 columns from @ViewBy = 0. The tablixes are looking fine and the data in the UI looks good too.

The problem I am running into is, if I run the report and from the dropdown I select "0" as value for ViewBy parameter, then my SP2 gets called and records get inserted. It works fine. HOWEVER, if I select "1" as value for ViewBy parameter dropdown, it's still calling the SP2 (even though SP2 gets called when @ViewBy = 0) and loading the data in the table which I DON'T want. Let me know what you guys suggest. I'd only want to get my tablix with 5 columns if I select @ViewBy = 1. Nothing should get inserted in my table.

Can i create an index across a linked SQL server?

$
0
0

Hi ALL,

 I was trying to create an index from SQL serve A on a table which is on SQL server B.

The two SQL servers are linked. But its giving me an error saying maximum number of prefixes.

This is the script i used 

create index idx_cm on [ServerName].[DBANAME].[dbo].[tableName](Col1,col2)

See the error below

The object name 'ServerName.DBANAME.dbo.tableName' contains more than the maximum number of prefixes. The maximum is 2.


Tina

Unable to see Report Builder button within the SSRS 2016 Report Manager Native mode portal

$
0
0

Hi,

I am unable to see Report Builder button within the SSRS 2016 Report Manager Native mode portal. Can anyone help?

Kind Regards,

Kieran.


Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

Pass multi parameter from one report where one of the values does not exist in the drill through parameter

$
0
0

Hi

Data source is SSAS, I have a report that consists of  a simple matrix comprising of the following fields

WorkTypeDescription and Id of jobs (this is a sum of the number of jobs)

In the text box for the NumberofJobsCompleted I set a action to go to a detailed report and pass the parameters from the first report.

The problem I have occurs that if I select more than one value in the parameter for given name my matrix looks like this

now if I click on the 1 job associated with LV fault it should take me to the detail of that job - however in the second report we have reduced the noise of the given name parameter by only showing  attributes (names) where there are nonempty values for  id of jobs.

So because only one of my selected people has done a LV fault, the 2nd persons name that I selected in the 1st report does not show in the 2nd report Given Name parameter and thus the report will not run. as I am trying to pass a value that doesn't exist

If I take out the nonempty filter in in the 2nd report given name parameter dataset, then it runs but then if the user wanted to use the 2nd report further that would have a lot of noise to navigate.

How can I possibly get around this problem

Regards


Export to excel - row grouping with calculation does not update value when cell content is updated.

$
0
0

Hi,

I am using SSRS 2008 Version. In my report i have grouping and calculations (eg: sum() ) done at row level. Report works fine. When I export the report to excel  and modify the value of the cell (as data needs to be updated) value, the sum()  at group leavel is not updated and  it still has previous data. Could you please explain what can be done to fix this issue?

Thanks,

RK

        
 

How to add new labels only on the report viewer(in the parameters section when previewing) in SSRS report ?

$
0
0

When we preview report in ssrs we get the above screen . While viewing reports we would like to add few more labels for user guidance but right now I dont get any such option to add labels all I get is parameters which are needed to be added here  but they cause cluttering and also occupy space for parameter value.

Has anyone implemented simple labels in the preview section?




Report with label at the top and report viewer below on SSRS 2008 R2

$
0
0

Can this type of  report be made ?

A Report with a label at the top and report viewer below on SSRS 2008 R2 




Unable to create Shared Data Source

$
0
0

Hi,

I installed SQL Server 2016 RC3 with Reporting Services (native mode) in Windows Server 2012 R2. When I try to create a shared Data Source in the "Web Portal" it gives me the error "Something went wrong. Please try again later." and the "New Data Source" has all the editors disabled with the error box saying "The data extension used here is not available. It has either been uninstalled, or it is not configured correctly."

What did I miss?

Thank you,

Dmitriy

Plotting Longitude and Latitude with Power View from a Multi-Dimensional Source

$
0
0

Hi,

I have a SQL 2012 SP1 environment integrated with SharePoint 2013. I have deployed a Multi-Dimensional Cube, due to the need for role playing dimensions and numerous parent-child hierarchies that can't be 'flattened' out easily, it's for this reason that we have gone multi-dimensional, rather than tabular.

The issue I now face is trying to plot the data on a map in Power View. It has to via Longitude and Latitude or easting and northing if possible. I know if I use PowerPivot, I can query the MD Cube, get my dataset and make sure the model views the lat/long as coordinates and this method works just fine - however, it involves an extra step, the end user must pre-build their query in PowerPivot before they can use the Power View maps and adhoc analysis, this can create a lot of back and forth when refining your query or performing additional 'what if' analysis.

When I create the Report Data Source in SharePoint to connect directly to the MD Cube, rather than going through Power Pivot, it's able to connect, but does not recognise the lat and long fields as Latitude and longitude, nor will it let me manually drag it into the lat and long fields on the field list. If I drag them into the 'location' section, it does not plot correctly.

Has anyone managed to get Power View to plot Latitude and Longitude from a Multi-Dimensional Source without having to go through PowerPivot?

SSRS 2016 - can someone tell me how to create a diagram like this

$
0
0

Hi

I am looking for a way to create a Barchart like this in  SSRS 2016, but can anyone tell me how to create the bullits of another calculation in the SQL or another dataset?

Thanks on advance :-)

/Graves

SSRS Case Statement

$
0
0

Hi,

 

    How to define the case statement for a particular field in the Report .

 

I have to add this case statement

CASE

Reason

WHEN 1 THEN'A'

WHEN 2 THEN'H'

WHEN 3 THEN'B

WHEN 4 THEN'C'

WHEN 5 THEN'D'

WHEN 6 THEN'E'

ELSENULL

END

 

 

can you please help me in this

 

Thanks

Dinesh


SSRS report is not showing data

$
0
0

I have some reports built in SSRS 2008. These reports are not showing any data. Data source for these reports has correct credentials and connecting successfully.

As a background, We had an application with same reports and this copy is running fine.

We created a copy of these reports accessible under different folder and with a different data source. Everything is same except Data source pointing to a different database with same structure.

How can we debug this and figure out why data is not being fetched by this new copy of reports.

SSDT 2015 (GA) in Visual Studio 2015 Ignores TargetServerVersion

$
0
0

When I create a new reporting services project or open an existing one and set the TargetServerVersion to "SQL Server 2008 R2, 2012, or 2014" this does not affect the rdl files. They still contain the following attribute in their root element:

xmlns="http://schemas.microsoft.com/sqlserver/reporting/2016/01/reportdefinition">

Any solution/workaround for this?


Column Header on every Page

$
0
0

Hi,

I have asked this question previously but got no solution. I am hoping someone would this time :).

I have compiled a report and there is not much grouping in the report but I want to repeat the header on every page.

I have ticked the box repeat header on each page and didnt work.

 

when I click on repeat on New to true it comes up with rendering error. Could someone please take a look?

Thanks,

Why the parameter pane hidden , in drill through reports , SSRS?

$
0
0
Hi All,

I just started working with a drill through report , where 2 reports are linked back and forth.  In the designer each report shows the parameter pane even after linking to the other report. But in server, after deploying the report, the parameter pane is vissible just for the starting report and just for the first time. when i click on the link and get the drill through report the parameter pane is hidden . Is this the way it is given in SSRS 2005. Or  is there any way i can show the parameter pane in the drill through reports. Also is there any functionality which differentiate the report whether its called directly or through a link from another report, because i would like to hide some  in the drill through reports fields  if the report is been called as linked report.

Please advise.

Thanks,
San

Report Parameter Available Values?

$
0
0

I am in the process of building some custom TFS Reports in Report Builder 3.0. I am building the reports from TFS Analysis Database. I am trying to figure out how to setup a parameter so that available values aren't repeated in a filter drop down. 

Here is what I have so far:

"Iteration" Parameter Properties:

"Iteration" available values Parameter Properties:

I have a filter setup on Iteration Path using expression below:

This works but there is a problem with the same available values being available in the drop down more than once. I am working on a TFS bug report so the report returns all TFS bugs. There obviously are many bugs under the same iteration which is why the same iteration is being repeating as an available option.

How can I prevent duplicates showing under available values?

Thanks, 

Viewing all 10045 articles
Browse latest View live


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