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

How to show data output in SSRS

$
0
0

Below is my simply query.  I need to use Matrix SSRS format. I will put "Region" in "row" column, Header will use "Customer_Requested_Date" field, and will use "Amount" in the data session.

The data output in the "Header" field will show January.....until December (current month is December).  In the Amount field under "December" (current month), I need to compute the formula like "Customer_Request_Month"< =  Current Month".  (I do not have the field name called Current Month, need to get a Date/Time function to display Current Month).

How I can come up the data output under December Header field to show the current Amount in that section?

November, 2014December,2014
RegionAmountCRD Month < = Current Month

Select

Customer_Request _Date,

Customer_request_Month,

Transaction_Type,

Region,

Amount

 From Table

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

Thanks,

Josephine


Josey Tang


How to make multi value parameter optional in SSRS

$
0
0

I HAVE REPORT IN SSRS 2005.

I have @strjournal as multi value parameter. Allow blank is checked. Parameter values r assigned through query.

select jornalno,jornalno as descr from tran_table 

union select 'NULL','NULL' 

So for @strjournal,  valuefield = jornalno  , label field = descr

-----------

my main query i am giving,

select .... from myTable where  (TRANKEY IN (@strjournal) AND @strjournal<> 'NULL' ) OR (TRANKEY LIKE '%' AND @strjournal = 'NULL')

If i select 'NULL' its giving me correct result (returning all records as condition is like '%')

if i select only 1 journalno (not 'NULL') also giving me correct result (i.e. only 1 record for which jornalno is selected)

if i select more than 1 jornalnos then its giving me error "an expression of non boolean type specified in a context where condition is expected , near ','"

Any help ??


h2007

Populate chart using sql query

$
0
0

Hello,

I have some sql queries that I run in a database. This queries uses the "Sum case" method.

I'm trying to create a rdlc file in order to report a pie chart.

But I don't know how can I configure the Chart on the rdlc file to get the data.

My queries are like this:

            Dim Pesquisa As String = "SELECT Origem," _& "      SUM(CASE WHEN Qualidade_Passagem = 'Otimo' THEN +1 ELSE 0 END) AS Otimo ," _& "      SUM(CASE WHEN Qualidade_Passagem = 'Bom' THEN +1 ELSE 0 END) AS Bom ," _& "      SUM(CASE WHEN Qualidade_Passagem = 'Regular' THEN +1 ELSE 0 END) AS Regular," _& "      SUM(CASE WHEN Qualidade_Passagem = 'Ruim' THEN +1 ELSE 0 END) AS Ruim" _& "      FROM Atendimentos where Data Between '" & Datainicial.Date.ToString("MM/dd/yyyy") & "'  and  '" & Datafinal.Date.ToString("MM/dd/yyyy") & "'" _& "      GROUP BY Origem" _& "       ORDER BY 1"

But I can't insert this query in the right place...

How can I do that?


Valdirnm

set multi value parameter optional in ssrs

$
0
0

I have report in SSRS 2005 with multi value parameter.

@strjournal is multi value parameter. Allow blank is checked. Values r assigned by below query

select journalno,journalno as descr from tranTable

union

select 'NULL','BLANK'

so for @strjournal, value field = journalno and label field = descr

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

My main query is,

select ---- from mainTable where

(TRANKEY IN (@strjournal) AND @strjournal<> 'NULL' ) OR (TRANKEY LIKE '%' AND @strjournal = 'NULL')

-----------

if i select 'NULL' gives me correct result (returns all rows as condition is like '%')

if i select only 1 journalno (not 'NULL') also gives me correct result (returns only 1 record for which journalno is selected)

if i select more than 1 journal nos gives me error, An expression of non-boolean type specified in a context where a condition is expected, near ',' 

if i select more than 1 values (though i have selected it as multi-value) its giving me error.


h2007

SSRS Table/Row Header does not repeat on every page when exported to PDF

$
0
0

Hi, I have a SSRS Report in which the rows are grouped and the Tablix has a Table/Row header. I wanted the header to repeat on every page for a group because sometimes the data from the group would be more than one page.
                               To achieve this
                               - I went to Advance mode by clicking the arrow next to column group
                               - Selected the Header Static column from Row Group
                               - Changed the following properties
                                                - KeepWithGroup: After
                                                - RepeatOnNewPage: True
                                                - The header columns are set to not grow.

The problem only occurs when the nested grouped data in one of the columns goes over a page. The following pages don't have any header.

So half of the time the header row repeats but when the nested grouped data extends over one page the header does not show. Problem only occurs when rendered to pdf.
I found this line "Headings are repeated on each page only if there is sufficient room" in SQL 2008 version. But I could not find it in later versions of sql server. So does that mean it is fixed

How to find which SSRS server connects to my Report Server DB?

$
0
0

I have a reporting services running on server A. I am using the report server db located on server B for SSRS located on Server A. How can I determine which SSRS server is connecting to the Report Server DB located on Server B??

Is there any entry in any of the tables in Report Server DB?

Looping Multiple Text files in SSIS

$
0
0

Hi,

I have a requirement in which i have 100 text files having one row each in it. Now i need to load Each row of data into a SQL table using SSIS and i dont want to stop the package even though it fails for any reason ( like inapporiate Data something like that ). How can i configure the SSIS package with error handling.. Please guide me on this..!

Thanking you in advance..!


Balaji - BI Developer

Unable to get trend line

$
0
0

I want a trend line as below .I have tried moving average,mean,median,etc in SSRS. but I couldn't get it. The line should tilt based on the value of the point ( the black square in middle of the slant line in  below image).

Can you please help me in getting the line.

Thanks in advance

 

 

free form layout problems displaying textbox

$
0
0

Hi all,

As you can see in the following image the constant text "/Ud" doesnt happen in the place I put it during design of the layout.

Is there any way to keep it stick up into the position I set on the right image during design?

thanks a lot!

Regarding reports

$
0
0

I have created a simple report named as "Employee Details"

I am filtering the details as per the emp_id but when I run the report one error I am getting and that is 

  • An error has occurred during report processing. (rsProcessingAborted)
    • The processing of FilterExpression for the dataset ‘CommercialLoan’ cannot be performed. Cannot compare data of types System.String and System.Int32. Please check the data type returned by the FilterExpression. (rsComparisonTypeError)


 An error has occurred during report processing. (rsProcessingAborted)
The processing of FilterExpression for the dataset ‘CommercialLoan’ cannot be performed. Cannot compare data of types System.String and System.Int32. Please check the data type returned by the FilterExpression. (rsComparisonTypeError)



  • An error has occurred during report processing. (rsProcessingAborted)
    • The processing of FilterExpression for the dataset ‘CommercialLoan’ cannot be performed. Cannot compare data of types System.String and System.Int32. Please check the data type returned by the FilterExpression. (rsComparisonTypeError)

Sorting numbers and strings

$
0
0

Hi,

I've a column in report builder with values such as : 70x500, 100x200, 150x200 and 80x200

The above I will have sorted like:  70x500, 80x200, 100x200, 150x200   (right now they are sorted like 100x200, 150x200, 70x500, 80x200)

How to achive this..?

Thanks in advance.

H

Median function in report builder 3.0

$
0
0

I need to perform median calculation in MS Report Builder 3.0, could anyone explain how I could achieve it considering my original value are

Region - Etab - Value

Abc - Def - 10

Abc - Def - 12

Ged - Tae - 1

I need to group by Region and Etab.

I've already built a SQL query to get the Median, but I would like to be able to use Report Builder grouping for usability.


System.Data.OracleClient requires Oracle client software version 8.1.7 or greater

$
0
0

I am attempting to define an Oracle Data Source to our Oracle Server and received this error.

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

Do I need to install something locally client-side for Oracle? Where can I find the local client-side install?

Thanks for your review and am hopeful for a reply.

Reporting Services - Export to Fillable PDF

$
0
0

Has anyone found a tool that will allow you to build a report and export it as a Fillable PDF?  We have customers who need checklists, etc. and we would love to generate this as a form pre-filled with data from our SQL Server but they need to be able to fill out the PDF.


Sherry

SSRS - Is there a multi thread safe way of displaying information from a DataSet in a Report Header?

$
0
0

 In order to dynamically display data in the Report Header based in the current record of the Dataset, we started using Shared Variables, we initially used ReportItems!SomeTextbox.Value, but we noticed that when SomeTextbox was not rendered in the body (usually because a comment section grow to occupy most of the page if not more than one page), then the ReportItem printed a blank/null value.


So, a method was defined in the Code section of the report that would set the value to the shared variable:

public shared Params as String

public shared Function SetValues(Param as String ) as String
Params = Param
Return Params 
End Function

Which would be called in the detail section of the tablix, then in the header a textbox would hold the following expression:

=Code.Params

This worked beautifully since, it now didn't mattered that the body section didn't had the SetValues call, the variable persited and the Header displayed the correct value. Our problem now is that when the report is being called in different threads with different data, the variable being shared/static gets modified by all the reports being run at the same time. 

So far I've tried several things:

- The variables need to be shared, otherwise the value set in the Body can't be seen by the header.

- Using Hashtables behaves exactly like the ReportItem option.

- Using a C# DLL with non static variables to take care of this, didn't work because apparently when the DLL is being called by the Body generates a different instance of the DLL than when it's called from the header.

So is there a way to deal with this issue in a multi thread safe way?

Thanks in advance!


 

The permissions granted to user '' are insufficient for performing this operation._

$
0
0

We have just installed a new instance of ss2012 on windows server (2008r2), both myself and another BA are in the server administrator group and can create projects and reports. But when we try to deploy we get this error..

The permissions granted to user 'Domain\Username' are insufficient for performing this operation.


Multiple Y axis in SSRS 2008 charts

$
0
0

Hi,

I need to plot a chart in SSRS 2008 that has 3 Y axis. I know we can have 2 Y axis (one is primary and one is secondary) but my requirement is to add one more axis to this chart.

Can anyone help me in doing this. Is it possible through some kind of custom code that we can right in SSRS or may be in .NET and then we can integrate it SSRS.

Is there a third party tool that we can use to achieve the same except Nevron charts.

Thanks,

Bhawna


Bhawna Aggarwal

column value coloring Based on the condition in ssrs 2008

$
0
0

Hi,

I need to change color formating based on below conditions

  1. Red if <=28 days or > 65 days       
  2. Green if >28 and <=60 days       
  3. Yellow if > 60 days and <=65 days
  4. <=0 No color

I tried with below IIF condition it's not working.

=iif(Fields!HDSI13.Value<=0,

"No color",iif((Fields!HDSI13.Value<=28or Fields!HDSI13.Value>64),"Red",iif((Fields!HDSI13.Value>29and Fields!HDSI13.Value<=60),"Green",iif((Fields!HDSI13.Value>60and Fields!HDSI13.Value<=65),"yellow",Nothing))))

Can any one help me on this.

Thanks,

Manasa.


Thank You, Manasa.V

Test SSRS DataSource Connection Programtically

$
0
0

Hi, Dear

I have created a SSRS Datasource programatically.

I also would like to Test this SSRS Datasource Connection programatically.

But it seems no API to do that.

Is there a way to do it programatically?

Regards

Ming

time is getting appended with date of birth

$
0
0

Hi,

I have developed a simple asp.net web application for Employee Details using grid view. Everything is working all right but when I run the application then in date of birth column the time is also getting appended like "12:00:00 AM". But I don't want this to be displayed. In code also I haven't written any time format code. so what is the reason that it is appearing while running the application. It appears only when the previous data is saved. Please help me..

Viewing all 20764 articles
Browse latest View live


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