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

Group chart bars by a dateTime

$
0
0

Hi,

I need to write an expression for the following chart below, in the following chart we have 3 categories, the PIVOT i am using has the Average of each category by DepartureDate;

to add to this the way this is done in Exel is being able to choose a data range for each bar, not sure how to do this in SSRS

Excel and SQL below

I want to say the following (as my excel chart) this is the product in EXCEL,

It is saying all for the 15th

then all including the 15th less -7 days

then all inclulding the 7-days less 28 days

as hrs,

my sql is not working:

SELECT        EmergencyAttendanceId, HospitalN, ArrivalDate, DepartureMethod, ArrivalMode, ArrivalHr, AdmWard, Ward, periodstartdate, periodstartdatetime, DepartureDate, 
                         URNumber, SeenWithinTime, AdmittedWithin4Hrs, HomeWithin4Hrs, PatientWithin4Hrs, TriageToDoctor, DoctorToBedRequest, BedRequestToDepart, 
                         IgnoreorKeepRecord, KeepRecord_Final
                         ,CASE WHEN DepartureDate>=DATEADD(Day,-1,GETDATE())then 'RunDate' else '' END AS '<1Day'
                         ,CASE WHEN DepartureDate >DATEADD(Day,-7,GETDATE()) Then '-7 Days' Else '' END AS '<7Days'
                         ,CASE WHEN DepartureDate >=DATEADD(DAy,-29,GETDATE()) THEN '-28 Days' ELSE '' END '<28Days'
FROM            EmergencyDepartment
WHERE DepartureDate  >=DATEADD(day, -30, GETDATE()) and DepartureMethod ='Admitted'
ORDER BY DepartureDate ASC


David




SSRS Report -Column wise display in a single page

$
0
0

Hi All

  I have a problem in displaying the SSRS Report.

Source :

Table report :

  Emp_id    Ename   sal

   1            abc    20

    2           sdf      30

    3           msd     40

     4         xcg       55

     5        mdf       56

I want Report Output like below

  Emp_id    Ename   sal               |  Emp_id    Ename   sal

   1            abc    20                    |       4         xcg       55

    2           sdf      30                   |      5        mdf       56

    3           msd     40                   |

Please help on this ..

Regards

Sheeba

Reporting Services / Subscription

$
0
0

Hi guys,

when I create a subscription in reporting services, I write the text for the recipient with line breaks, but when the subscription automatically sends the emails the line breaks aren't there and the complete text is in one line.

Is there any chance to do line breaks in the text for a subscription?

Best regards,
Marco

How to update the input parameters values if other input parameters values changing in SSRS 2005?

$
0
0
Hi,

Could you please help me on the below scenario in SSRS 2005

I have 4 Input parameters in the report (Country, States, Districts, Projects). Here I need all the parameters need to be selected by default in all the parameters. Assume if i go and change thecountryparameter by selecting only one value then other three parameters(States, Districts, Projects) will get updated as per the country and all should be in the selected mode only.

And once again if i go and change the States  parameter by selecting only one value, then other two parameters (Districts, Projects) will get   loaded.

The reason here is, some users will won't select any parameter as all are selected by default. just they will click on "view report" button.

and some users will select one or two parameters instead of selecting all.

and some users for specific project they will select all the parameters.

Could you help me on this if it if feasible in SSRS 2005.

Many Thanks in advance.



Thanks

Venkat.

Passing Parameter in drill through

$
0
0
How do we pass a parameter on click in SSRS...For eg. if we have to drill through from one report to another report and we click on a year 2012,the second report should show the results related to 2012...i am using SSAS cube as my data source...

Take data from a dataset to run a stored procedure that is going to provide me data to populate a map

$
0
0

Hi everyone,

there is something I don't know how to do it. I have a dataset that provides data to a report and some controls.

I have another report with a map. I would like to take the data of the previous dataset that the user has selected (year, region, ...). I would like to take some of this data as parameter to run a stored procedure that is going to provide me polygons to populate the map.

Any idea how to get it?

Thanks,

 

SSRS 2012 - the multiple-value parameter managing depends on the type of query

$
0
0

SQL Server 2012 - 11.0.2218.0 Enterprise Evaluation Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
I verified onto my SSRS that a multiple-value parameter is managed differently depending on the query type used in the dataset.
Report builts using VS10 (monolithic server, ssdb, ssrs, developping, all-in-one)

Here is a brief proof of concept:

The parameters are defined in the report as:
CLICOD, integer, no nulls, allow multiple values
FROM_DATE, datetime, no null, no multiple values
[the FROM_DATE is just for comparison, CLICOD is the troublesome)

The select use the parameters in the where clause, let's say: "WHERE CLICOD IN (@CLICOD) ANDORDDAT=@FROM_DATE"

Here is the running code sniffed via Profiler:


Dataset query type:

Text:
exec sp_executesql N'SELECT * FROM myTAB WHERE CLICOD IN (1,2,3) AND ORDDAT=@FROM_DATE',N'@FROM_DATE datetime',@FROM_DATE='2013-02-01 00:00:00'
Great. The CLICOD (only) had been directly substituted in the source allowing the multiple value in the IN clause.

Stored Proc:
exec SSRS_sp_MCInsurers @CLICOD=N'1,2,3',@FROM_DATE='2013-02-01 00:00:00'
The CLICOD gets a string! And of course the db engine starts swearing and fires an exception

Of course I'd like to go through the sp way... any hints?

pf

Report Manager Home page error in SQL 2005

$
0
0

I have installed SQL 2005(32 bit) Reporting services on my Window7 OS. Now the Homepage under
ReportManager is showing an error as below. It is saying that Config file can not read.
How can i resolve this problem? Any help will be appreciated.


Regards, RSingh


SSRS Repeater Tables

$
0
0

Dear All,

Cognos has something called repeater tables that the query would be shown based on the query that is selected to be repeated on. For example, if the year is selected in the base query to be repeated on (and there are 3 years in the db), when running the report, in the layout the chart will be shown 3 times by year.

Is this doable in SSRs???

Thanks,


Kind Regards, J

In 2008 SSRS how to have a multi-value parameter to default to 'Select All'

$
0
0

I have a SSRS 2008 report that has a paramater (Sales Rep) that allows multiiple values to be selected.  I want to have a default value for the parameter of 'Select All'.  how can I do that?

thanks,

clayp


tcpowell

SQL Visual Studio 2008 - Sequential data not work

$
0
0

I am using this  SQL Query (ORDER BY (CASE WHEN SWAC01 = 'RTL' THEN 1 WHEN SWAC01 = 'EMY' THEN 2 WHEN SWAC01 = 'WSL' THEN 3 ELSE 4 END), but, it does not  work during display  the results from  the reporting.  I wish the report  display as RTL, EMY and WSL, but, the report  display  in alphabetical order  by EMY first, followed by RTL and last will be WSL.

Any outcomes on how to troubleshoot this problems ?

CSV export different format after upgrading from Reporting Services 2005 to Reporting Services 2008 - WHY?

$
0
0

In regards to Microsoft Reporting Services, exporting a report in the csv format generates a different looking file after upgrading from 2005 to 2008. For example, fields at the top of the report in the header used to be in the beginning of each row of the csv file in 2005, but it seems as though in 2008, header data (that’s not in the report table) is at the top of the csv file and not part of each csv row. There are also more data items delimited by commas in the 2008 csv. It seems as though the table column headers are treated as data in the csv. Also, the data items delimited by commas are in a different order between versions.

 

We would like to know the reason why reports exported in csv format look different between Microsoft Reporting Services 2005 and 2008.


Ken Hales

SSRS code variable resetting on new page

Cannot start Report Builder in Report Manager

$
0
0

 

When I try to start Report Builder I get the 'Cannot connec to error' with the following details:

 

The SQL Server 2008 is the default installation with jus one instance of Reportserver on the same machine. Th uthentiction mode is windows. The SQL Server 2008 was installed successfully after removing the Nov CTP.

 

PLATFORM VERSION INFO
 Windows    : 5.1.2600.131072 (Win32NT)
 Common Language Runtime  : 2.0.50727.1433
 System.Deployment.dll   : 2.0.50727.1433 (REDBITS.050727-1400)
 mscorwks.dll    : 2.0.50727.1433 (REDBITS.050727-1400)
 dfdll.dll    : 2.0.50727.1433 (REDBITS.050727-1400)
 dfshim.dll    : 2.0.50727.1433 (REDBITS.050727-1400)

SOURCES
 Deployment url   : http://hodentek2:8080/ReportServer/ReportBuilder/ReportBuilder.application

ERROR SUMMARY
 Below is a summary of the errors, details of these errors are listed later in the log.
 * Activation of http://hodentek2:8080/ReportServer/ReportBuilder/ReportBuilder.application resulted in exception. Following failure messages were detected:
  + An application for this deployment is already installed with a different application identity.

COMPONENT STORE TRANSACTION FAILURE SUMMARY
 No transaction error was detected.

WARNINGS
 There were no warnings during this operation.

OPERATION PROGRESS STATUS
 * [4/4/2008 3:46:12 PM] : Activation of http://hodentek2:8080/ReportServer/ReportBuilder/ReportBuilder.application has started.

ERROR DETAILS
 Following errors were detected during this operation.
 * [4/4/2008 3:46:12 PM] System.Deployment.Application.DeploymentException (Subscription)
  - An application for this deployment is already installed with a different application identity.
  - Source: System.Deployment
  - Stack trace:
   at System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)
   at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
   at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
   at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension)
   at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
 No transaction information is available.

 

Any help appeciated.

 

Scrolling a Line in SSRS

$
0
0

Hi...

I have a doubt.Can we scroll a line in SSRS..

For example in news channels the headlines will be scrolling at the bottom.In this way can i develop any report.

Actually i have tried it by using html tag but it did not work...Please help me..

Thanks in advance


How to use Custom multiple Objects on Crystal Report

$
0
0
I didn't use crystal report before. But for a project, I need to use it instead of fastreport because of printing issues.. I have bene trying to solve my problem for many hours but haven't found out any solution yet.. 

Well, I have two classes to use on crystal report. I want to create a bill report.

I organized some data from my database and put them to my these classes.

   
 public class ReportInfo    {        public DateTime Date { get; set; }        public string BillNumber { get; set; }        public string Address { get; set; }        public string BillAddress { get; set; }        public string BillOwner { get; set; }        public string TaxNumberIDNumber { get; set; }        public List<ReportProduct> Products { get; set; }        public string PaymentType { get; set; }        public string MoneyWithText { get; set; }         }    public class ReportProduct    {                                  public string ProductInfo { get; set; }        public double Amount { get; set; }        public string ProductCode { get; set; }        public double Tax { get; set; }        public double Price { get; set; }            }



As you see, there is one bill class (report info) and a list for products (report producs) in reportinfo class..

I want to create a report that would be some value (bill number, date...) on header and some value (products info) on details area.


here i did it for one bill (Also I dont know how to put bills in a report viewert)

   
var serialID = Convert.ToInt32(dgBillSerials.SelectedRows[0].Cells[0].Value);    var bills= BillsFromDatabase.Bills.Where(b => b.BillSerialID == serialID && (b.BillNumber>=txtFirstBillNumber.Value && b.BillNumber<=txtLastBillNumber.Value)).ToList();    var products = BillsFromDatabase.Products.Where(p => p.BillID == bills[0].ID).ToList();    ReportInfo ri = new ReportInfo();    ri.Address = bills[0].Address;    ri.BillAddress = bills[0].BillAddress;    ri.BillNumber =bills[0].SerialNumber + bills[0].BillNumber.ToString();    ri.BillOwner = bills[0].OwnerType == "sirket" ? bills[0].PersonTitle : bills[0].Name;    ri.Date = bills[0].BillDate;    ri.MoneyWithText = "deneme";    ri.PaymentType = bills[0].PaymentType;    ri.TaxNumberIDNumber=bills[0].OwnerType=="sirket"?bills[0].TaxDepartment + " " + bills[0].TaxNumber:bills[0].NationalID;    ri.Products = new List<ReportProduct>();    double sum=0;        foreach (var product in products)    {     sum += product.Price;     ri.Products.Add(new ReportProduct()     {       Price = product.Price,       ProductCode = product.ProductCode,       ProductInfo = product.ProductInfo,       Amount = Math.Round((product.Price/118)*100,2),       Tax =Math.Round( product.Price -((product.Price / 118) * 100),2)     });                            }        ri.MoneyWithText = Utils.MoneyToText(sum);     ReportDocument crystalReport  = new ReportDocument();     crystalReport.Load(@"..my path....\BillCrystalReport.rpt");     crystalReport.SetDataSource(ri);       crystalReportViewer1.ReportSource = crystalReport;




when I run that code an exception throws that is "source object is not valid"  on crystalReport.SetDataSource(ri);


I know that it looks unfair but I dont know how to implement two tables to my crystal report. when I add my both classes to the crystal repot it looks like that



I made  this one for one class and its OK. but this tutoraial doesnt talk about multiple data objects.

http://msdn.microsoft.com/en-us/library/ms227595(v=vs.80).aspx

ps: using vs 2012 and fw 4.0 and installed sap crystal report.



Using HTML Viewer with SSRS SharePoint Integrated Mode

$
0
0

Our farm has SharePoint 2010 and SQL Server 2008R2 with SSRS in SharePoint integrated mode. Rather than using the RSViewerPage or RSViewerWebPart, I want to use the HTML Viewer to display SSRS reports that I have stored in a SharePoint library. I have been researching and from what I can tell if I do something like the following:

https://{sharepoint_site}/_vti_bin/reportserver?https://{sharepoint_site}/{library}/report.rdl&rs:command=Render

or

https://{sharepoint_site}/{sub-site}/_vti_bin/reportserver?https://{sharepoint_site}/{sub-site}/{library}/report.rdl&rs:command=Render

it should work. However in either case when I do this it redirects me to the RSViewerPage. For the first case above I get:

https://{sharepoint_site}/_layouts/ReportServer/RSViewerPage.aspx?rv:RelativeReportURL=/{library}/report.rdl

Anyone know what I may be doing wrong? Thanks for any help

Nick

SSRS Slow on First Load

$
0
0

Hi

I am fairly new with SSRS 2008 R2, and have a native site. It runs slow, especially on first load (about a minute)

Is there any thing I can do, recommended tips?

List control in ssrs

$
0
0

Hi All,

Thanks for your time and seeing my post.

I have developed a report by using List control in ssrs and the report format is look like the below image.

But i need the report like belo image.

For the above requirement i've taken a list and place all the required fields. But here the problems is the format of the design. When i ran the report i seen only one side i want the report like above picture.

Regarding data:

I want to show the below fields in report

1. Reg_number, 2. Address, 3. Trading Name

Here i want to show the data side by side and the data is coming from the above three fields.

Thanks in Advance,

Madhava

Active X print control install error "An error occured while copying file RSClientPrint-x86.inf"

$
0
0

Hi,

I am having a problem installing RSClientPrint. I have followed instructions online on how to deploy the active x control.

I copy the contents of the RSClientPrint-x86.cab or RSClientPrint-x64.cab to "c:\Windows\Downloaded Program Files" at startup and registers the dll "rsclientprint.dll" or "rsclientprint64.dll"

On windows 7 machines (haven't tested XP or Vista) we get the following error for non admin users.

"An error occured while copying file RSClientPrint-x86.inf

Cannot copy file to destination directory

Retry Cancel"

if you then click cancel you get the following prompt

"Do you want to continue Setup without copying this file?

Yes No"

If you click yes the report can then be printed correctly. This prompt happens every single time a user clicks the print icon in the RS web interface.

I belive this issue relates to the user not having access to the directory "c:\Windows\Downloaded Program Files" what I don't understand is why it is trying to copy the file "RSClientPrint-x86.inf" when it already exists. Any ideas?

Thanks

Dave

Viewing all 10045 articles
Browse latest View live


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