ssrs-2012

Using condition to set SSRS matrix column name

北战南征 提交于 2020-01-06 18:09:38
问题 I was trying something new, using matrix and only want to see the recent two years and i made 2 columns. The first column had this expression '=MAX(Fields!Year.Value)-1' and the second column has the expression '=MAX(Fields!Year.Value)'. I expected to only see 2 year columns but it shows all of them and on the last column it sums up all the orders. See the photos below: In the design view my matrix looks like this: The output in report is: The problem is that year 2007 only exists in another

Using condition to set SSRS matrix column name

℡╲_俬逩灬. 提交于 2020-01-06 18:09:13
问题 I was trying something new, using matrix and only want to see the recent two years and i made 2 columns. The first column had this expression '=MAX(Fields!Year.Value)-1' and the second column has the expression '=MAX(Fields!Year.Value)'. I expected to only see 2 year columns but it shows all of them and on the last column it sums up all the orders. See the photos below: In the design view my matrix looks like this: The output in report is: The problem is that year 2007 only exists in another

Allow multiple values issue on SSRS

只谈情不闲聊 提交于 2020-01-05 04:54:16
问题 I would like to select multiple values parameter on SSRS. I used depended dropdown parameter. For example my type parameter data set is: select '<All>' 'TYPE' union SELECT DISTINCT STR_TYPE 'TYPE' FROM [DBO].[MMWLOTS] L JOIN [DBO].[MMWLOTPRPVALS] P ON P.LOTPK=L.LOTPK JOIN [DBO].[LFP_MATERIALS] M ON M.STR_MATERIAL_ID=L.DEFID my class parameter's dataset code is: (class parameter dropdown list depends on type parameter value) select '<All>' 'CLASS' union SELECT DISTINCT STR_CLASS 'CLASS' FROM

SSRS 2008 R2 / 2012 Width Property Unit of Measure Default Setting

时光总嘲笑我的痴心妄想 提交于 2020-01-04 02:38:31
问题 Is there a way to configure the default unit of measure for the width / height properties used to size cells / rows? If I add a table and configure the width of the columns to a value specified in "pt" rather than "cm" I have to change them all as I specify the width (I am using pt to get over the inexplicable inability of SSRS to correctly align columns when exported to Excel). Is there a way I can change from cm to pt as the default value for all measures in a report? 回答1: Imperial or

What credentials need to be passed when accessing an SSRS report through URL?

守給你的承諾、 提交于 2020-01-04 02:11:15
问题 I know this is repeat question, but I have searched almost all the threads about this and have not found any solution to my problem. Some of threads show a solution like: &dsu:DataSourceName=username&dsp:DataSourceName=password But this doesn't work for me. What value should I give for DataSourceName ?FolderName/SharedDataSourceName or only SharedDataSourceName? For username and password do I need to provide Windows username and password for where the report server is installed? I tried all

SQL Server Reporting Services url parameters not working

天大地大妈咪最大 提交于 2020-01-01 16:50:12
问题 I cannot correctly pass the parameters to a SQL Server Reporting server. The report page is displayed, but the Report Viewer Web Part’s parameter prompts are still empty and nothing is run. The following url takes me to the correct report page, where I can manually select the parameters, then click the "View Report" button and get a report. http://MyServer/ReportServer?%2fProjects%2fProject_Report The following are in the report webpage source: <label for="ctl32_ctl04_ctl03_ddValue"><span

Execute .exe in SSRS Report

旧时模样 提交于 2020-01-01 07:34:08
问题 i want to execute a .exe in a SSRS Report from Microsoft Dynamics AX . I tried so far to realize that over Custom Code and a Textfield with following Expression: =Code.StartProcess("test") Public Function StartProcess(ByVal s As String) As String Dim pHelp As New ProcessStartInfo pHelp.FileName = "test.bat" pHelp.Arguments = s pHelp.UseShellExecute = True pHelp.WindowStyle = ProcessWindowStyle.Normal Dim proc As Process = Process.Start(pHelp) Return "it works" End Function I get the error "

Download all SSRS reports

元气小坏坏 提交于 2020-01-01 04:30:06
问题 I want to get a copy of all .rdl files in one server. I can do the download manually one report at the time, but this is time consuming especially that this server has around 1500 reports. Is there any way or any tool that allows me to download all the .rdl files and take a copy of them? 回答1: There is a complete & simpler way to do this using PowerShell. This code will export ALL report content in the exact same structure as the Report server. Take a look at the Github wiki for other options

MDX Query to return the number of records

岁酱吖の 提交于 2019-12-31 05:18:09
问题 Below is my MDX query SELECT NON EMPTY { [Measures].[Fact Sample Count] } ON COLUMNS, NON EMPTY { ( [Fact Sample].[Sample Reference No].[Sample Reference No].ALLMEMBERS ) } ON ROWS FROM [LIMSInstCube] WHERE ( [Dim Material Master].[Material Master ID].&[999] ) So it gives 10 records as my out put. I have a requirement where I have to show the number of records that are returned from the query i.e 10. Can any one please help me how to get the records count. 回答1: This should get you the count:

Remove Duplicate Function with LookupSet returing #Error in SSRS

本小妞迷上赌 提交于 2019-12-25 09:08:34
问题 In my SSRS Report, I am using LOOKUPSET function to concatenate one of the field values . In-order to get distinct concatenated values I used RemoveDuplicates Vb Function in Report Code. the function code is: Public Shared Function RemoveDuplicates(ByVal items As Object()) As String() System.Array.Sort(items) Dim k As Integer = 0 For i As Integer = 0 To items.Length - 1 If i > 0 AndAlso items(i).Equals(items(i - 1)) Then Continue For End If items(k) = items(i) k += 1 Next Dim unique As