reporting-services

SSRS 2016 find 2nd minimum/ 2nd maximum

血红的双手。 提交于 2019-12-11 12:15:29
问题 I want to find the second minimum number in my row. I can complete Min and Max by the inbuilt expression. More information about the SSRS, it is loaded from SSAS datasource. In the SSRS design, I have followed Chris steps 1.) Put the custom code in to report properties 2.) Input the expression into two separate columns (setMinMaxReset and setMinMax): =Code.setMinMaxReset(Fields!ID_AverageChangeRevenue_Value.Value) =Code.setMinMax(Fields!ID_AverageChangeRevenue_Value.Value) SSRS design 3.) The

SSRS positioning of an image

别说谁变了你拦得住时间么 提交于 2019-12-11 12:09:59
问题 I'm developing an SSRS report where I need to place three images (company logos) at the top of the page. I get the images from three table fields. This fields can be null (images are not mandatory to be present). The locations of the images are top left, top center and top right. I cannot find a way to align an image to the right or center. Have any of you accomplish this? 回答1: AFAIK, it is not possible to directly do auto-align / docking. For my reports, I set the report size to fit in a

SSRS report repeat table for every parameter value

核能气质少年 提交于 2019-12-11 12:06:07
问题 Guys sorry for the general question here but I have been looking on the internet and cant find a solution. I have an SSRS report. There is one Parameter user must put in before running, @Location. In the query its specified to only return results where that location is matched. I.E. where Company.location = @location The results are displayed in a table. This all works fine, but I want to change the parameter to contain multiple values.....and then repeat the table for every location the user

How to use stored proc with null parameters in SSRS?

无人久伴 提交于 2019-12-11 11:55:34
问题 i have a report that uses a stored procedure that is using optional parameters.I have 4 optional parameter,so in the report's preview tab ,i can 4 textboxes for the parameters.But when i dont write anything in the textboxes,i get an error..What can i do to execute my proc with null parameters is SSRS ? 回答1: you can declare parameters to procedure as follows: @Your_parameter VARCHAR(50) = NULL and use in the where as: where (@Your_parameter IS NULL OR columnname = @Your_parameter ) 回答2: Note

Can the .net reportviewer control be fully operated by code only (ie., minus the toolbar)

纵然是瞬间 提交于 2019-12-11 11:21:55
问题 Just started on a touchscreen based project that uses the reportviewer control. I will obviously be putting my own big buttons for report navigation , export to pdf etc since even people with tiny fingers will have a hard time clicking the out of box toolbar that comes with this control (see below screenshot). Can I do all of this from code 1) Show next / prev/first /last page of report 2) Show print dialog/page setup dialog/print layout 3) Export to pdf Thats all we need for now. I am going

Table Output in Sql

强颜欢笑 提交于 2019-12-11 11:14:36
问题 I have a query output as below. Name Price ProductTypeCode Ram 120 P1 RAM 130 P1 RAM 140 P1 RAM 240 P1 RAM 340 P1 RAM 190 P2 RAM 160 P2 I want to Arrange the above output as: Name P2Price P1Price Ram 190 120 RAM 160 130 RAM null 140 RAM null 240 RAM null 340 Please help me to achieve the above output. 回答1: You can use row_number() to enumerate the prices. Then pivot the data. The following query does this using conditional aggregation: select name, max(case when producttypecode = 'p2' then

MDX How to calculate measure against dimension without displaying members in results

◇◆丶佛笑我妖孽 提交于 2019-12-11 11:14:18
问题 Could someone please help me with the below MDX problem: I got the dataset like the one below: With Set Range1 as {[Date].[Calendar].[Month].&[2008]&[1] :[Date].[Calendar].[Month].&[2008]&[12]} Set Range2 as {[Delivery Date].[Calendar].[Month].&[2008]&[1]: [Delivery Date].[Calendar].[Month].&[2008]&[12]} MEMBER measures.A as [Measures].[Internet Order Count] + [Measures].[Reseller Order Count] select {[Measures].[Internet Order Count],A} on columns, non empty( [Sales Territory].[Sales

Passing Parameters to a Subreport

不羁岁月 提交于 2019-12-11 11:08:27
问题 I have a main report that prompts the user to enter two parameters (@ORI and @CaseNumber). Within this report, I have a subreport that needs to pass a value that is picked up by the main report (@Sequence). How do I pass the value that the main report contains to the subreport? Thank you. 回答1: Right-click the cell with Navigation and choose Properties. Click the Navigation tab. In the Hyperlink action section where it says Jump to Report click the Parameters button. This shows the parameters

How to have a a single series data label on a grouped bar chart?

笑着哭i 提交于 2019-12-11 11:07:58
问题 I have an SSRS bar chart the shows some data in a handful of category groups. It's pretty straightforward and looks like this: I've now got the need to segment each category into two series groups like so: So far so good however I need to display the ungrouped percentage data labels (i.e. the requirement is to continue to show the percentage of each combined category group, NOT the percentage of the series group). So I need the bar chart from the second image but the data labels from the

SSRS wont publish report but it returns successful as if it did

时光总嘲笑我的痴心妄想 提交于 2019-12-11 10:45:29
问题 public static void ListFolders() { HomeFolderListing = new List<string>(); ReportingServiceSoapClient rs = new ReportingServiceSoapClient(); rs.ClientCredentials.Windows.AllowedImpersonationLevel = TokenImpersonationLevel.Impersonation; CatalogItem[] HomeFolders = null; string reportPath = "/"; rs.ListChildren(reportPath, true, out HomeFolders); foreach (var homeF in HomeFolders) { if (homeF.Name.ToString().ToLower().Contains("base")) { if (homeF.Path.ToString().ToLower().Contains("/data