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

SSRS - adding hierarchy to tables, visualizations

$
0
0

Hello,

i recently started using SSRS. I have some problems with data presentation because I'm used to Tableau...

And I'm not ready to give up on SSRS.

I was wondering whetether it's possible to create a hierarchies in tables and - more importnat - in graphs like in Tableau.

Please let me know if one of you experts have done such a nice visualization or have some tips for me.

Amelka


Remove SharePoint integrated SSRS from only one node in the SharePoint farm

$
0
0

Hi,

So the title pretty much explains what I'm trying to do, but here's the background.

I have a two node SharePoint 2013 farm, where each node is setup as a WFE and app server. Reporting Services is installed on both nodes (SQL 2012). Recently NODE1 SSRS has stopped working. The service starts, but reports cannot be ran from it, throwing an error in the SharePoint logs such as this:

Unexpected error in RSSharedServiceCatalogHandler.ProcessRequest: Microsoft.ReportingServices.SharePoint.SharedService.Client.StreamClientRecoverableCommunicationException: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+msbin1). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 1024 bytes of the response were: '<!DOCTYPE html>  <html>      <head>          <title>Invalid syntax on line 194.</title>          <meta name="viewport" content="width=device-width" />          <style>           body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}            p {font-family:"Verdana";font-weight:normal;color:black;margin- -5px}     ...

In an attempt to fix this, I though I would try to remove SSRS from NODE1, and then re-install. I'd also like to do this without affect the reporting services service that is still processing requests on NODE2. According to this article...

http://msdn.microsoft.com/en-us/library/aa905871.aspx#bkmk_remove_addin

... I can remove the RS add-in from Control Panel, but it sounds like it will remove the feature from the farm and not just the one node. Is the correct? Is there a way to uninstall/re-install on one node without stopping reports from running on NODE2?

The article does mention running an uninstall "local only" from the command line with the MSI. Would this be the best way, and if so, which MSI file would I use (I see rsSharePoint.msi under '\PCUSOURCE\1033_ENU_LP\x64\Setup' and 1'033_ENU_LP\x64\Setup' on the SQL media)?

Also, would removing just the add-in portion be sufficient, or do I need to remove the "Reporting Services - SharePoint" feature as well (as seen from the SQL installer)?

I've already posted this in the SharePoint 2013 forums as well, but was referred here for help.

Thanks for any feedback.

Jared

Display Disclaimer message before opening SSRS report

$
0
0

Hello,

I have a requirement to display a disclaimer message before going to the content of a particular report.

The workflow would be:

  • go to report folder e.g. Reports/Pages/Folder.aspx?ItemPath=%2fMyFolder%2fReports&ViewMode=List
  • Click on Report x
  • Display Disclaimer
  • Press 'ok' on disclaimer
  • Continue to report

This is SSRS 2012 native.

I had contemplated injecting JavaScript into the report, but this appears virtually impossible to do i a simple manner.

I am stumped as best to how to proceed.

Regards,

MrHH

SSRS 2008R2: One DataSet with six records and needed to show in two columns

$
0
0

HI Greetings,

I have  a Dataset A with 6 records.
Example,
Dataset A
Record1
Record2
Record3
Record4
Record5
Record6

I am in the need of having two columns at saperate places in rdl with 3 records each
For Example,

DataSet A
DataSet A
Record1Record4
Record2Record5
Record3Record6


Please provide the way to achieve this. i am using two different tablix with same 'dataSet A'


Thanks in Advance
Pari


Filter field by more than one parameter

$
0
0

I have a report that has a text field (message field) full of data.  I have created 5 parameters giving users an option to type any 5 different words to search the field.  I want to then take whichever parameters that were populated to limit the rows of data that are returned.  The problem I'm having is that it looks for every selection in the same row.  For example if message 1 = 'Yes' and message 2 = 'No' then it only looks where message_field = 'Yes' or 'No'.  If I change the AND to OR then I get everything if any of these are null.  How can I get it to ignore any null parameter if one if populated or if none are populated then give me everything?  Here is a sql example:

Select * from table A

where    (MESSAGE_FIELD  LIKE  ('%'||:INCLUDE_EVENT_MESSAGE1||'%') OR (:INCLUDE_EVENT_MESSAGE1) IS NULL OR (:INCLUDE_EVENT_MESSAGE1)='')
    AND
    (MESSAGE_FIELD  LIKE  ('%'||:INCLUDE_EVENT_MESSAGE2||'%') OR (:INCLUDE_EVENT_MESSAGE2) IS NULL OR (:INCLUDE_EVENT_MESSAGE2)='')
    AND
   (MESSAGE_FIELD  LIKE  ('%'||:INCLUDE_EVENT_MESSAGE3||'%') OR (:INCLUDE_EVENT_MESSAGE3) IS NULL OR (:INCLUDE_EVENT_MESSAGE3)='')    AND
   AND
    (MESSAGE_FIELD  LIKE  ('%'||:INCLUDE_EVENT_MESSAGE4||'%') OR (:INCLUDE_EVENT_MESSAGE4) IS NULL OR (:INCLUDE_EVENT_MESSAGE4)='')
    AND
   (MESSAGE_FIELD  LIKE  ('%'||:INCLUDE_EVENT_MESSAGE5||'%') OR (:INCLUDE_EVENT_MESSAGE5) IS NULL OR (:INCLUDE_EVENT_MESSAGE5)='')      )

Data driven subscription failing - There is no data for the field at position 2

$
0
0

Hi,

Am facing a issue with scheduling a report through data driven approach. The report accepts 6 params out of which one is static int, 2 are date time and 3 are text.

RDL earlier had a param of type text and was removed recently. Hence the subscr proc was also modified to not to return additional column. Now the proc returns 6 values in addition to mail related values. 

It was working earlier and after the removal of the param, it is throwing this error consistently. I verified the data type match and the order of param. Everything looks good. In trace, i see error is happening as soon as subsc proc execution completes successfully. 

To complicate, the report runs fine in report manager.

Please let me know what am missing here?


Sivaganesh K

SSRS - Report Deployment

$
0
0

Hi Friends .

Need Help ... I do have an SSRS Report working perfectly on Server S1 . with environment as SSRS 2008 R2

Recently it was upgraded to SQL Server SSRS  2014  on server S2.

When i Open the Report file  R1.RDLC  in BIDS .

After working on the report I do the deployment of the Report R1. In the report R1 Properties , my New Server S2 is spelled correctly in the Deployment Property.

So what the Issue is happening that sometimes my Report R1.Rdlc file gets  deployed on Old Server S1 :(

The IP of both the Server S1 & S2 are different but the Names are Same  but still my Report gets deployed on Old server as well as well on new Server .

So what we did . We Stopped the reporting Services as well IIS On Server S1. with that it is running/Deploying correctly on server S2, but still this is not the solution . we need to restart our services on Server S1 Today .

Please help why the report sometimes gets deploy on Old server also

Thanks

Rakesh

SSRS - Deployment Issue

$
0
0

Hi Friends .

Need Help ... I do have an SSRS Report working perfectly on Server S1 . with environment as SSRS 2008 R2

Recently it was upgraded to SQL Server SSRS  2014  on server S2.

When i Open the Report file  R1.RDLC  in BIDS .

After working on the report I do the deployment of the Report R1. In the report R1 Properties , my New Server S2 is spelled correctly in the Deployment Property.

So what the Issue is happening that sometimes my Report R1.Rdlc file gets  deployed on Old Server S1 :(

The IP of both the Server S1 & S2 are different but the Names are Same  but still my Report gets deployed on Old server as well as well on new Server .

So what we did . We Stopped the reporting Services as well IIS On Server S1. with that it is running/Deploying correctly on server S2, but still this is not the solution . we need to restart our services on Server S1 Today .

Please help why the report sometimes gets deploy on Old server also

Thanks

Rakesh


month parameter between

$
0
0

My main dataset has the following query:

SELECT         INDICATOR_NAME, count(*) as cnts
FROM            CDW_SHR.TF_AUTO_INDICATOR_TABLE
WHERE        (RULE_ID IN (274, 310, 311, 315, 316, 
                         320, 330, 331, 332, 333, 334, 335)) and Extract(year from (TO_DATE(Reported_Dt, 'YYYYMMDD'))) Between (:FrmYear) AND (:ToYear) and Extract(month from (TO_DATE(Reported_Dt, 'YYYYMMDD'))) Between (:FrmMnt) AND (:ToMnt)
group by INDICATOR_NAME

now I have a 2 datasets for year and month, the month dataset has the following query:

select 1 as mnt from dual
union all select 2 from dual
union all select 3 from dual
union all select 4 from dual
union all select 5 from dual
union all select 6 from dual
union all select 7 from dual
union all select 8 from dual
union all select 9 from dual
union all select 10 from dual
union all select 11 from dual
union all select 12 from dual

Now, when I select from year 2001 and to year 2002 and

From month 1 and to month 3, it gives me the proper result

BUT when i do from month 4 and to month 3 it does not give me a result.

This is because to month becomes smaller than from month.

Is there any work around for this issue that anyone is aware of?

P.S. (I am using oracle database that is why the query syntax is the way that it is, and REPORTED_DT is integer YYYYMMDD hence the conversion)


Dhananjay Rele

total average of a text box

$
0
0

Hi,

 I am using SSRS 2008 R2. I have a report to show the average value of branch wise sales, which i am implementing the following expression

=Avg(Fields!YTD_Total_Premium.Value,"Branch_Name")

Similarly I have to get the total average value of all these branches. As I am not calculating the average in query, please help me how to get the total average value of text box.


Change cell color if MAX

$
0
0

Hello,

i want to find the max value in my report column and change the background color of it using field expression.
Thanks in Advance

Missing Employee information

$
0
0

I tried debugging it but could not find a solution as to why one employee information is missing from this code.

Select UserName, EmpNumber, Product, SubProduct, [1] as 'January', [2] as 'February', [3] as 'March', [4] as 'April', [5] as 'May', [6] as 'June'
, [7] as 'July', [8] as 'August', [9] as 'September', [10] as 'October', [11] as 'November', [12] as 'December'

from (
SELECT 
Userdata.chUserName as UserName
,Month(a.dtInsertDate) as [Month2]
, datename(mm,a.dtInsertDate) as [Month]
,Year(a.dtInsertDate) as [Year]
,chRefReferredBy  as EmpNumber

,case when Prod.vchParameterDesc like '%Insurance' and Prod.vchParameterDesc <> 'Auto Insurance' then 'Other Insurance'
when Prod.vchParameterDesc = 'Auto Insurance' then 'Auto Insurance' when Prod.vchParameterDesc = 'Travel' then 'Travel' end as Product
,SubProd.vchParameterDesc as SubProduct
--,count(iCustomerId) as Total
  , iCustomerId
FROM [CRM_OED].[dbo].[CSuProductReferrals] a (nolock)

Left Outer Join [CRM_OED].[dbo].[ReferenceParameters] b(nolock)
on b.iParameterId = a.iRefType

Left Outer Join [CRM_OED].[dbo].[ReferenceParameters] as Prod(nolock)
on Prod.iParameterId = a.iRefProduct

Left Outer Join [CRM_OED].[dbo].[ReferenceParameters] as SubProd(nolock)
on SubProd.iParameterId = a.iRefSubProduct

Left Outer Join [CRM_OED].[dbo].[ReferenceParameters] as AccptDec(nolock)
on AccptDec.iParameterId = a.iStatus

Left Outer Join [CRM_OED].[dbo].[Users] Userdata(nolock)
on Userdata.chUserId = a.chRefReferredBy

Inner Join [CRM_OED].[dbo].[csuEmployeeAttributes] as Attributes(nolock)
on Attributes.chUserID = chRefReferredBy

Inner Join [CRM_OED].[dbo].[UDT_GroupsRegion] as Region(nolock)
on Region.chGroupID = 'RE' + cast(Attributes.iRegioncode as CHAR(10)) 

where Year(a.dtInsertDate) = @Year
--and chRefReferredBy in ('643247')
and AccptDec.vchParameterDesc = 'Accepted'
and a.tiRecordStatus = 1
and( Region.chGroupDesc in (@Region) or ' All' = @Region)

and Prod.vchParameterDesc not in ('Life Insurance', 'Annuities')
and (cast(Attributes.iClubCode as CHAR(10)) in (@Club) or ' All' = @Club)
and (Prod.vchParameterDesc like '%Insurance' or Prod.vchParameterDesc = 'Travel')


) P

Pivot
(
count(iCustomerId) 
For [Month2]  in 
([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])
) as pvt

Order by 
UserName, Product, SubProduct

Any help would really be appreciated.

Drill Down is not working after exporting to excel

$
0
0

Hi,

I have created a drill down report in SSRS . Its working perfect. But when I export it to excel, it is showing only the expanded nodes. But I want the same functionality which gives user to expand or collapse the nodes in Excel as well. Can any one please help me with this?

I want to use jQuery in SSRS reports

$
0
0

I make SSRS Reports and I use SSRS RDL file to perform coding and all..

How can I use jQuery scripts in my Report Server Reports(SSRS) to make it more attractive and user friendly?

SSRS export to PDF spreading columns to multiple pages

$
0
0

Hi 

I'm developing a report in SSRS 2008 R2, which has more than 50 columns. Report looks good when viewing in report viewer, but when exporting to PDF columns are spreading to multiple pages. I have seen couple of suggestion in the forum to set the table width inline to the page width. But what I actually require is, I need to show only the first page and dont want the remaining pages in the PDF. Is there any way to remove the remaining pages while exporting to PDF ?

Lets assume the report has 20 columns with 100 records. currently when exporting to PDF, below is what I see.

Page 1 - column 1 to 10 of first 50 records

Page 2 - column 11 to 20 of first 50 records

Page 3 - column 1 to 10 of remaining 50 records

page 4 - column 11 to 20 of remaining 50 records

What I require is...

Page 1 - column 1 to 10 of first 50 records 

Page 2 - column 1 to 10 of remaining 50 records

Thanks



SSRS - How to achieve multiple instances of a matrix output in a single page?

$
0
0

Hi,

I am in a scenario where I am supposed to build a report aggregated on Sales for each store in a city.

 

I have a data set like this.

City               Store Name    Yr              Sales

C1                   S1               2000          100000

C1                   S1               2001          150000

C2                   S2               2000           200000

C2                   S2               2001           250000

C2                  S3               2000         300000

C2                  S3               2001         300000

 

Now my report has to be displayed in this way:

C1

---

Yr              S1        

2000       100000

2001       150000

 

C2

---

Yr              S2         S3

2000       200000    300000

2001       250000    300000

How do I achieve this..? I tried to use Matrix report but not able to arrive at the required result.??

Can someone please help me!!

 

 

 

 


Conversion from string "" to type date is not valid

$
0
0

Hi

From my ssas data source I have a datetime field which is in this format 2015-01-02 00:00:00. There are also nulls in this field.

I want to change the format to dd/MM/yyy

I am using this

FORMAT(CDATE(Fields!Oldest_Action_Date.Value),"dd/MM/yyy")

When I run the report I get the warning that it won't do the conversion and any field where it is NULL is now shown with a #Error.

How can I get around this?

Thanks

SSRS 2012 with MTHML subscriptions, Graphs, and Outlook cache issues

$
0
0

Hi,

I looked for a resolution to this but couldn't fine one; hopefully someone has solved this issue or has a workaround and can point me in the right direction.  This seems to be both an issue with the SSRS Render method and Outlook caching, but since the source of the problem is with the Render method I'm posting here.

We have several parameterized reports that use the same chart which is emailed in MTHML format to users.  Each email subscription sends a different parameter which in turn generates different chart data output.

I've noticed that when SSRS renders the graphs in MTHML it uses an algorithm that generates code similar to the following for the image source:

<img onerror="this.errored=true;" src="cid:C_632iT7_1">

This image src value is the same for EVERY chart output regardless of the parameters passed to it.  This value is the same across all emails even when the parameters are different.

The problem is when the report is emailed, Outlook's caching mechanism will display the wrong chart when clicking between different report result emails.  When opening the report in IE the correct chart for each is displayed correctly.  I understand this is because (a) the rendering engines are different and (b) due to how Outlook caches emails.

The Render method of the report seems to generate this value rather than using some uniqueId each time.  Without using a custom Render method implementation or a custom Email delivery assembly to intercept and change this source id, has anyone been able to find a resolution to this?

Due to our business model we cannot turn off cached exchange mode on the outlook client machines (although I haven't seen that this fixes anything in most circumstances).

Thanks,

Kevin

using multiple datasets in one report

$
0
0

Hello, I am creating a report with some parameters, which generates different dataset. How do I switch the layout from one dataset to the other ?

SSRS 2008 R2 Report - Sum Totals of a Filtered Group

$
0
0

I'm at a loss here, so any help will me much appreciated. I will do my best to explain, but if you need additional information, please let me know:

I have a very large dataset of patient data. Specifically for the numbers I need, I have a patient number field, a county field, a 1 or 0 for LastYear field, and a 1 or 0 for CurrentYear field.

Example:

PtNo    County  PY  CY

45676  Scott     0    1

45322  Cape     1     0

47686  North     0     1

The thing I am shooting for on my report is, "Volume growth in 3 counties (+20 cases)."

I created a group and grouped by County (group name County) and I included a group filter to only include "total cases of CY" are greater than "total cases of PY" to narrow my data to only counties that had a higher current year sum than previous year sum.

Example:

County  PY    CY  Difference

Scott    141  143     2

Cape     90    98      8

North    78     88    10 

All is working well, except I don't need to see the Counties themselves, I just need the 3 counties and a difference of 20. 

I explored online and found tutorials that said to right click on the field and select "Add Total" but this total did not have my filter in it and gave me everyone. I also tried adding a row outside the group and used the RunningValue function (i.e. RunningValue(Fields!FYTD_Current_Year.Value, Sum, "County"))  but it gave me a message that states "The Value expression for the text box 'Textbox456' has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing data region or the name of a dataset."

When I move the row with the RunningValue function inside the group, it runs but I get the same information repeated twice for each county with no final total.

So I am not sure how to go about getting my values I need for my report. Anybody know how to resolve this?

Thanks,

Cyndi


cpemtp1

Viewing all 20764 articles
Browse latest View live