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

Making Rows into a List

$
0
0

Hi there,

I'm trying to create a report with three columns of data, but I would like to turn Columns #2 and #3 into comma-delimited lists within cells grouped by Column #1.

Basically here's what I'm trying to accomplish:

(SQL Query returns this:)

---1----2----3---

---A----J----M---

---A----F----K---

---A----P----R---

---B----L----T---

(And I'd like to make the report look like this:)

-----------------------------

---A----J,F,P----M,K,R----

---B------L---------T------

I'm not sure if this is something that should be done in SSRS or in the TSQL, so any advice would be appreciated.

Thanks.


SSRS subscription: Run for previous month?

$
0
0
I have a few subscriptions I need to set up that should display the previous month's data.  The parameters as of right now are only two date fields, is there a way to set it up in the subscription to only use last month's dates?

Using a Function from a Custom assembly - An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000]

$
0
0

LocalReport, SQL 2005, Custom Assembly compiled in Framework 2.0, with this I can add the reference to the report.

Client  (WinForm Framework 4.0)  In the same path of my application, I have the custom assembly (that uses the report)

When I try to get the DataSources, getParameters, or SetParameters, I always get the same error. The LoadDefinition(stream) does not load anything. Any Idea?

An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'.’.

I also tried to enable the NetFx40_LegacySecurityPolicy in the config of my application, and nothing change.

If I don't use the Function from the custom assembly I don't have any problem.
Thanks in advance. 

Problem with my expression

$
0
0

I'm in crisis with a reportviewer here, can you help me? Well, the problem is basically that I have a column that the values ​​are INT and can be zero. Gotta take this column and divide by NV  and PROJETADO  (Projetado / NV) , but I'm picking up to make this query and filter the wrong division. Do know a way? Here the details of my query:


All columns will return me the total price (SUM) except that it returns as # ERROR.

Nome Loja
Projetado
Data
Pesquisa
              Informação     
GIV
  NV
    *T.M.
Alberg inc.
10.000,00
28/5/2012
 10.000,00
0                  0,00
2.000,00
 29          
344,83
Alberg inc.
400,00
4/6/2012               
0,00
                 400,00
0,00                 
0
0,00
Alberg inc.
11.880,00
5/6/2012
0,00
                  0,00
11.880,00
0
0,00
Alberg inc.
998,00
6/6/2012
998,00
                200,00
300,00
9
110,89
Alberg inc.
100,00                          
7/6/2012
0,00
                100,00
0,00
0
0,00
Alberg inc.
100,0
8/6/2012
100,00
                100,00
100,00
5
20,00
TOTAL
23.478,00

11.098,00
                 800,00
14.280,00
43
#Error

The PROJETADO is the column that receives the greatest value of PESQUISA, INFORMAÇÃO, GIV.I have to get the value of this column ( PROJETADO ) and divide by the column TM The column is the column NV TM divided by column PROJETADO.

I need the sum of the column TM, but I only back the value error.

= FormatNumber (IIf (Fields!Auditado.Value  > Fields!Reducao.Value,  ( SUM (IIf (Fields!Auditado.Value  > Fields!Reducao.Value, FormatNumber ( Fields!Auditado.Value)

, IIf (Fields!Reducao.Value > Fields!Vendas.Value, FormatNumber(Fields!Reducao.Value), Fields!Vendas.Value)) / Fields!Itens.Value)),

IIf (Fields!Reducao.Value > Fields!Vendas.Value, (( SUM (IIf (Fields!Auditado.Value  > Fields!Reducao.Value, FormatNumber ( Fields!Auditado.Value),

IIf (Fields!Reducao.Value > Fields!Vendas.Value, FormatNumber(Fields!Reducao.Value), Fields!Vendas.Value)) / Fields!Itens.Value)) ), ( SUM (IIf (Fields!Auditado.Value  > Fields!Reducao.Value, FormatNumber ( Fields!Auditado.Value),

IIf (Fields!Reducao.Value > Fields!Vendas.Value, FormatNumber(Fields!Reducao.Value), Fields!Vendas.Value)) / Fields!Itens.Value)))))


Assunto = dúvida

Microsoft.Reporting.WinForms.ReportViewer show loading message manually

$
0
0

Hello, 

I have a Report that takes the data from some calculations (not from DB). I do these calculation in a form that contains the ReportView-er. During the calculation I would like that the ReportViewer would show the Loading image (the big one in the middle). 

Is it possible to do that .?

Thank you in advance.

Sergiu.


Best Regards, Sergiu Pantiru

PDF Export displaying #Error, when there is Lookupset used

$
0
0

I have a report with two datasets A and B having 1 to many relation. In one text box displaying values from dataset B using lookupset and join. The report renders good, but the pdf export shows #error in the textbox. Even the excel export is displaying error. Any suggestions?

=Join(LookupSet(Fields!ID.Value,Fields!ID.Value, Fields!RET_VAL.Value, "DatasetB"), ",")

Thanks in advance.

Data Comparison

$
0
0

I am using SQL Server 2008 R2 Reporting Service. We have requirement that we want to compare two different year data. So I will make two dataset. We are comparing categories, So situation is that may some category is there first year and may not be in second year so when time of display data it will look uneven. As for example if in first year there are 3 category and in next year there is 2 category so in first tablix there will be 3 rows and in second tablix it will be 2 rows.

Is there any way we can make rows same in both tablix I mean can we add category in both side where is record it will come value if there is no record than it will come blank

Same will be happen if we group by month, like may be in first year there will be record in "Jan" and in second year there will no record for "Jan".

Can we make some kind of SQL or do something in SSRS. Kindly somebody can suggest on this.  

 

custom code

$
0
0

hi

i hv custom code in my report and i am attaching assembly also.

when i put background color like code.stylevalue("color")

it gives me error like 

 'StyleValue' is not a member of 'ReportExprHostImpl.CustomCodeProxy'.

ANy help?


Sort Label - needs to sort Across not Down - I'm desperate!

$
0
0

I've created a label report in SSRS that looks great except it is sorting down instead of across. 

The report has multiple columns as well as a Column Group and Row Group.

I hope there is a way for me to fix this sort without having to recreate the who report. 

Thank you.

Adding Images to a report, using a file path stored in a database.

$
0
0

I am currently creating a report in Reporting Services that needs to contain case information and images related to the case. The image file path is stored in the sql database and each is linked to a case via an unique reference. What should I choose as the image source when I try to add the image?

Thanks in advance for any help provided

How to Format Series X-Axis labels on bar chart?

$
0
0

I have a bar chart as displayed below in SSRS 2008 R2 that I want to display x-axis labels on.  My data looks something like this:

Monday Tuesday Wednesday [Units Used]
1       0      0         4
1       0      0         2
1       0      0         2
1       0      0         1
0       1      0         2
0       1      0         3
0       1      0         2
0       0      1         5
0       0      1         2
0       0      1         3

So I want to display a total of the Units Used for each day of the week.  The tablix for this RDL displays correctly.  The dataset above actually has columns for M-F and the weekend.  But now when I view this chart it looks like the following!  No X-labels!  How do I make these display?  And FYI, I did try adding the M-F as Category Groups instead of Series Groups, but this did not resemble at all what the graph looks like now.  I just want a simple bar graph displaying Units Used vs. day of the week!


Ryan D

Format Make Same Size

$
0
0

I have SSRS 2008 R2.  How do we enable the Make Same Size button?  This button as well as many of the other Formatting options are greyed out for me.  It would be way more efficient if I could use one of these!


Ryan D

Any other way to re-write this small piece of where clause

$
0
0
Declare @Test DATETIME = '1/1/2012'
--This is how my where clause looks like:
WHERE (a.EndDate = '50/50/5000' or a.EndDate >= @Test)
and a.StartDate <= @Test
--50/50/5000 is some invalid date in the EndDate column loaded in the table
--I tried this
(CONVERT(DATE,REPLACE(a.EndDate,'99/99/9999','12/31/2099')))  >= Convert(varchar(10),CONVERT(Date,@Test),120)
AND a.StartDate <= CONVERT(Varchar(10),@Test,101)
It does not seem to be working very fine. Any ideas?

The request failed with HTTP status 401: Unauthorized.

$
0
0

We are using SQL Server Reporting Services 2008 R2 with much success.

I just created a report which performs properly when run from Reporting Services.

When trying to execute it from a vb.net desktop app the following error is thrown:

The request failed with HTTP status 401: Unauthorized.

The code that throws the error is:        execInfo = WebReference1.LoadReport(reportPath, historyID)

Any information to help resolve this will be greatly appreciated.

Thanks in advance!

Filtering a dataset by grouped data

$
0
0

I would really appreciate some help with a report builder head scratcher I am currently experiencing.  

I have a dataset which contains the fields
Individual
PlanID
Outcome
Review date
Progress

All of the fields apart from review date and progress also have associated ID numbers.

individuals can have multiple plans
plans can have multiple outcomes
Outcomes can have multiple review dates
Review dates have one progress record per outcome  (but that means on different review dates they can have difference progresses)

e.g.


What I want to do is have a dataset that has the last recorded progress per outcome per plan for each individual.  So in the example above, 3 rows should be returned.


I want to be able to do this in the dataset as opposed to using expressions in a table as I need to make charts, and cut the data up in different ways that don't easily seem to be achievable when grouping within a table/matrix.  Is this possible?  If so, I'd really appreciate any help.  I am fairly new to SSRS and this has me going round in circles!  

Thanks
Eils


Using two datasets of similar data from two sources in one tablix in SSRS

$
0
0

I have two data sources from two different servers that are returning the exact same data. I need to be able to join the two sets of data so I can use them in one query for a single tablix. Can someone point me in the right direction I can take to accomplish this task?

Thanks,
Jeff

SSRS2008 R2 Custom Authentication

$
0
0

Hi,

I tried the custom authentication sample from codeplex. It worked fine. Now I am trying to implement the custom authentication as per our company standards. So I modified the following

ReportServer:Web.config.,RSreportserver.config,reportingservice.exe.config,rssrvpolicy.config

ReportManager:Web.config,rsmgrpolicy

I am able to see the login page. Once I enter my credentials I get the following error.

[WebException: The request failed with HTTP status 404: Not Found.]
   System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) +413022
   System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) +300
   ReportService2010.ReportingService2010.LogonUser(String userName, String password, String authority) +185
   SSRSExtensions.Security.UILogon.Page_Load(Object sender, EventArgs e) +449
   System.Web.UI.Control.OnLoad(EventArgs e) +132
   System.Web.UI.Control.LoadRecursive() +66
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428

When i try to browse the Reportingservice2010.asmx from a browser I get the following error.

A string literal was expected, but no opening quote character was found. Error
processing resource http://xxxx:5051

Server Error in /ReportServer_MSSQLSERVER_SSRS Application



SSRS Question with Datetime field

$
0
0

I have a query in SSRS that passes all of the dates and then a total column with the month name into SSRS.  So for example I a date column with the following data:

02/01/2012

02/02/2012

February

Then I have a switch Expression with the following data:

=Switch(ISDATE(Fields!DATE.value) = False, Fields!DATE.Value,IsDate(Fields!DATE.value) = "1",format(CDATE(Fields!DATE.Value),"MMM dd yyyy"))

The problem is the switch statement shows an #error for February when I run the switch statement above.  How can I fix the switch statement so I can display the February text?  Thanks for your help.

Teradata error in the report server logs

$
0
0

This is the error I am getting in my Report server Log

ERROR: Exception caught instantiating TERADATA report server extension: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Teradata.Client.Provider, Version=12.0.0.0, Culture=neutral, PublicKeyToken=76b417ee2e04956c' or one of its dependencies. The system cannot find the file specified.
File name: 'Teradata.Client.Provider, Version=12.0.0.0, Culture=neutral, PublicKeyToken=76b417ee2e04956c'

this is what I have in the rsreportserver config file

<Data>
			<Extension Name="SQL" Type="Microsoft.ReportingServices.DataExtensions.SqlConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="SQLAZURE" Type="Microsoft.ReportingServices.DataExtensions.SqlAzureConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="SQLPDW" Type="Microsoft.ReportingServices.DataExtensions.SqlDwConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="OLEDB" Type="Microsoft.ReportingServices.DataExtensions.OleDbConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="OLEDB-MD" Type="Microsoft.ReportingServices.DataExtensions.AdoMdConnection,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="ORACLE" Type="Microsoft.ReportingServices.DataExtensions.OracleClientConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="ODBC" Type="Microsoft.ReportingServices.DataExtensions.OdbcConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="XML" Type="Microsoft.ReportingServices.DataExtensions.XmlDPConnection,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="SHAREPOINTLIST" Type="Microsoft.ReportingServices.DataExtensions.SharePointList.SPListConnection,Microsoft.ReportingServices.DataExtensions"/>
			<Extension Name="SAPBW" Type="Microsoft.ReportingServices.DataExtensions.SapBw.SapBwConnection,Microsoft.ReportingServices.DataExtensions.SapBw"/>
			<Extension Name="ESSBASE" Type="Microsoft.ReportingServices.DataExtensions.Essbase.EssbaseConnection,Microsoft.ReportingServices.DataExtensions.Essbase"/>
			<Extension Name="TERADATA" Type="Microsoft.ReportingServices.DataExtensions.TeradataConnectionWrapper,Microsoft.ReportingServices.DataExtensions"/>
		</Data>

When I run the report from the application I get this error message

The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsReportServerDatabaseUnavailable)

Any help will be appreciated..

Thanks

Karen

SSRS 2008 R2 - Default Multi Value Parameters are Not Selected

$
0
0

Hello,

I've been running into this issue quite a few times, and have been unable to solve it through reading various posts/forums.  Here is the issue

Software Details:

Datawarehouse Database - SQL Server 2008 R2

Reporting Services Version - SSRS 2008 R2

Development Environment - Visual Studio 2008

Problem Details:

I have been writing reports based of a Relational Datamart with dimensions and facts.  The report in question uses dimensions for parameters and facts for content.  Multi valued parameters are enabled in the report query by using the 'IN(@Paramenter)' statement within the report query.  It has a total of 6 multi-value parameters.  I assign the same available values from dimension datasets for each parameter to it's default parameter. Theoretically all the values in the option lists should be selected after first render.  This is not always the case.

Example:

SELECT *

FROM dbo.MyTable

WHERE

TableColumn0 IN (@Parameter0)

AND

TableColumn1 IN(@Parameter1)

AND ....N (continue syntax to 6 multi valued parameters)

 

Some of the multi-value drop down lists are defaulting to have every value selected, and some are not .  The problem is I need to know why some parameters are not selecting all by default when specified.

 

Thank you in advance for your help.

 

Russ D

 

Viewing all 4035 articles
Browse latest View live


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