SQL Reporting :: Create Parameters In A MDX Query?

Aug 19, 2010

I am new to MDX and Sql Server Analysis Service and I've searched this high and low and read a lot of articles, but cannot figure out how.I know this is tough after reading so many articles online, and thus I am only trying my slim chance of getting something helpful from here. I need to create a sales report and want to parameterize the region, so, I'd like to have something likeSELECT blah blahFROM [MySsasWarehouse]WHERE @regionThe @region may take values such as [USA].[Northeast].[New Hampshire], for example.How do I make this happen with MDX? I learned that I can doSELECT blah blahFROM [MySsasWarehouse]WHERE STRTOMEMBER('[USA].[Northeast].[New Hampshire]')But, I have no idea how to have something like STRTOMEMBER(@region)and to be able to pass values to that @region variable.

In the end I would like to create a SSRS report using this MDX query and pass different values to @region. Do NOT point me to articles about how to pass parameters to SSRS, because I know how to do it through the URL query string.My question is How to create parameters for MDX query per se, and I haven't been successful in attempting to do so.

View 3 Replies


Similar Messages:

DataSource Controls :: SqlDataSource And Parameters Query / Trying To Accomplish Is Building Dynamic Query

Aug 22, 2010

1. I have a GridView on my page and it uses sqldatasource with parameterized query. What I want to do is, on page load (where nothing has been selected so no parameter supplied), I want it to query everything (something like SELECT * FROM [this_table]) but since my SelectCommand is something like

SELECT * FROM [this_table] WHERE [this_column] = @someParameters AND [that_column] = @someParameters.

Can I play around with default value to achieve something like that but how ? Now, when the page loads, it doesn't show anything (No Gridview).

2. On my page, I made something like (username, gender, address, and more) and one single search button. That means, no single control enable auto postback. What I am trying to accomplish is building dynamic query

(if username specifed -> SELECT * FROM [this_table] WHERE [username] LIKE @username).

If both username and gender are specified (SELECT * FROM [this_table] WHERE [username] LIKE @username AND [gender] = @gender) and you know the rest. How can I do this using GridView and SqlDataSource ? To my knowledge, I can only specify one SELECT statement in a sqldatasource.

View 11 Replies

SQL Reporting :: Reporting" Subject: Pass The Query Dynamically To Sql Server Report?

Apr 30, 2010

it possible to pass the query dynamically to sql server report from .net or from any other source.

View 1 Replies

DataSource Controls :: Use Is Null In Query Without Using Parameters For It Or Should Use Parameters For This Field Where Value Is NULL

Jan 21, 2010

here is my code for selectiong some records from db table

string strSql = "select * from mtblNBD where SentTo=@SentTo and InternalStatus Is NULL order by DeadLine desc";
SqlCommand com = new SqlCommand(strSql, con);
com.Parameters.Add("@SentTo", SqlDbType.NVarChar, 50).Value = (string)Session["uname"];

here I am using parameters for SenTo field but not for NULL so it is ok... or should I use parameters for this field where value is NULL , if yes then how can I use parameter for this

View 8 Replies

SQL Reporting :: Create A XML File (document) Using Reporting Service?

Jun 2, 2010

I have a requirement to create a XML file from sql server data.I need to schedule this job to run at specific intervals of time.I don't know, if I could do with Reporting services.I would like to know, if it's possible with Sql server reporting services? how to do that.

View 2 Replies

SQL Reporting :: Passing Parameters Through Sub Reports?

Aug 24, 2010

I am trying to use a parameter field where there is a subreport in my main report but i keep getting the error "subreport cannot be shown" when running the report.

p.s - I have just set the parameters the same in the subreport as the main report.

View 2 Replies

SQL Reporting :: How To Date Parameters Localization

Jun 2, 2010

I've been struggling with one of my reports executed on MS SQL Server 2005 and built with SSRS 2k5.

Indeed, this report can be executed by many people around the world and as a consequence with different browser cultures.

My SQL Server is a French version of SQL Server 2005. So is SRRS 2005.

When a user with a en-US browser culture executes the report, two datepickers allow him to choose dates. Those datepickers are well localized (m/d/yyyy) but my server interprets the chosen dates as French ones (dd/mm/yyyy) thus retrieving wrong results.

I've tried to set the report's language to French but the datepickers are still localized.
how I could either force the report's culture or have sql server properly interpret dates.

View 1 Replies

SQL Reporting :: Receiving Parameters From ReportViewer

Jan 27, 2011

I am using Visual Studio 2005 and Report Viewer to generate a few reports that I extract from a MS SQL 2005 DB. Everything is working fine, but I want to be able to pass 2 parameters from my ASP.NET C# file to the report file (.rdlc) and show it on the generated report.

My C# file has these lines, which I believe pass the parameters off

Code:

View 2 Replies

SQL Reporting :: Using Parameters To Search Dates In Services

Sep 19, 2010

I have recently started using SQL Server Reporting services. I currently have a problem. I am trying to achieve a search by dates in a report. I have a table with the fields RequestDate in e.g. 22-Jan-2010 or 23-Sep-2010. I have created a report in Query Designer with two parameters in it RequestDate & RequestDate2.

The Operators are for RequestDate is: Is more than or equal to The value is: 1-Jan-2010 And the Operator for RequestDate2 is: Is less than or equal to. The value is 30-Dec-2010 When i go to the SQL Statement this is produced:

SELECT
MHRA.ImportRequestID
,MHRA.UniqueID
,MHRA.CreatedBy
,MHRA.RequestDate
FROM
MHRA
WHERE
MHRA.RequestDate >= @RequestDate
AND MHRA.RequestDate <= @RequestDate2

When i go to view report i want to be able to search for dates between the dates 1 Jan 2010 and 30-Aug-2010 My query seems to pick up all or most of the results between these dates. How can i build this query so i can get specific results. For example...in the Request Date Parameter box i would put 2-feb-2010 and in Request Date 2 i would put in 5-Jun-2010 and this would return all the results between these dates.

View 1 Replies

SQL Reporting :: Accessing ReportViewer Attributes / Parameters In C#?

Apr 21, 2010

I need to be able to pull some values from a ReportViewer running an SSRS report. Specifically, I need the name of the report and the parameter(s) fed into it. I have looked at the ReportParameterInfo class as well as its members and methods, but I can not get this to work. Has anyone done this before or have a general idea on where to start?

View 3 Replies

SQL Reporting :: SSRS Date Format In Parameters?

Oct 27, 2010

Can we change the date format in the default parameters pane.(For eg : When we create a new parameter and select datatype as date time in report parameters.)

Default settings for this date picker control is mm/dd/yyyy.

I need to change the date to dd/mm/yyyy.

Is it possible to the change this date format to dd/mm/yyyy or any other custom format?

View 2 Replies

SQL Reporting :: Passing DateTime Parameters To ReportViewer

Feb 5, 2010

I am having problems getting my first report to show data when passing 2 DateTime session and 1 string session parameters to my report. When I remove the 2 DateTime parameters returns data, but with DateTime Parameters, no data. The SQL statement returns correctly. It seems my 2 date params get to the report as NULL. [Code]....

Report Parameters:

dtFromSelect = string - internal

dtToSelect = string - internal

qreStorename = string - internal

For report parameters, if I use DateTime instead of String, I get this error

The definition of the report 'Main Report' is invalid.

The property 'DefaultValue' of report parameter 'dtToSelect' doesn't have the expected type

View 4 Replies

SQL Reporting :: Datetime Format For Report Parameters?

Apr 5, 2010

We have a requirement where date time values would be passed to the report parameter which is of

View 2 Replies

SQL Reporting :: Setting Filter Parameters For RDLC?

Mar 30, 2011

I have an RDLC report and an aspx page with a MicrosoftReportviewer control. The objectDataSource retrieves ALL records.

Now I want to filter the reports results So in the rdlc report I create a report parameter by clicking on the report, report parameter menu. The name of the parameter is Zip.

Then in my code behind I put the following code in a button click event

Dim params(0) As Microsoft.Reporting.WebForms.ReportParameter
params(0) = New Microsoft.Reporting.WebForms.ReportParameter("Zip", "78734")
ReportViewer1.LocalReport.SetParameters(params)
ReportViewer1.LocalReport.Refresh()

When I click the button the results are not filtered. The results have not changed.

View 2 Replies

SQL Reporting :: Report DateTime Parameters Do Not Appear In Textbox?

Feb 7, 2010

In Report Viewer report, I have two DateTime parameters that I would like to appear in a textbox of my report. How can I format like this? Currently this comes out blank.

= "Date Range: From: " + Parameters!dtFromSelect.Value + " - To: " + Parameters!dtToSelect.Value

View 2 Replies

SQL Reporting :: Passing Encrypted Parameters Values In URL?

Feb 20, 2010

I am having two reports Report1 and Report2. From Report1 i have to call report2 while clicking link.

I have acheived this by using Jump to report and also i have passed some parameters to report2.

Using report viewer i am viewing this report1. In link field right click properties i am getting report2 url. In new browser if paste the report 2 url with paramters values URL report is coming and also it allows to change report parametes in address bar.

Is it possible to excrypt parameters values while calling report2

eg URL

http://myserver/reports/Pages/ReportViewer.aspx?/FEPSReports/RPT_ViewTransaction&AccessEmployeeID=MUTHU&FilterEmployeeID=*&ShowABC=False&ConvertToUSD=False&FromDate=01/01/2009&ThruDate=12/30/2009&Level=4&HDL=1&TopLevel=2&FilterCompanyCode=*&FilterDivision=*&FilterSBUID=*&FilterSBUName=*&FilterLocation=*&FilterTeam=*&ShowAllEmployee=yes&DecimalPlaces=2&rs:ParameterLanguage=&rc:Parameters=Collapsed

View 6 Replies

SQL Reporting :: Return Missing Value When Try To Set Reportviewer Parameters?

Jan 20, 2010

I have a Business Intelligent project with many reports and I would implentent that reports in a ASP.Net page in server processmode.

I create a master page, and a normal page for this master page with report to view:

<rsweb:ReportViewer ID="ReportViewer1" runat="server" Font-Names="Verdana" Font-Size="8pt"
Height="500px" ProcessingMode="Remote" Width="100%" >
<ServerReport ReportPath="/reportServer/simpleReport" ReportServerUrl="http://localhost/reportserver" />

[Code]....

But i get back this error

The 'Gender' parameter is missing a value This problem is in only one report, this report have a multiview parameters.

View 1 Replies

SQL Reporting :: How To Call Multi-value Parameters In SSRS From Application

Oct 6, 2010

i am trying to call an SSRS report (in VS 2005) from my asp.net (web application) implemented in VS 2008 (don't ask me why, i am kind of confused by this weird arrangement too). report has been deployed to report server and it contains a multi-value parameter.when i call report from asp.net app, i set the value for this multi-value parameter as a string and all selected values are separated by comma. i.e. i have 5 options (a, b, c, d, e), and i selected first two, the string is then "a,b".

the multi-value parameter on the report side is defined as: Multi-value selected, Allow blank selected, Avaliable values are from query (a dataset that contains a, b, c, d, e) Value field and Label field are both mapped to dataset filed (there is only one field in the dataset). the default values are from query too (same dataset). value field is mapped also.

i have two problems:

1: it looks to me that all available values are selected on the report side, regardless what i really selected and passed over (when i turn on paramters).

2: when i turn off parameters, i need to display what values being selected as a string, the join statement, join(Parameters!TeamLead.Value), gives a list of all available values for the multi-value parameter, however, i only need selected values. how should i write this expression (for a textbox) to join only selected items in the multi-value parameter(i don't see any option in the intellisense dropdown box)?

View 2 Replies

SQL Reporting :: Passing Parameters To SSRS Report From Web Page?

Sep 2, 2010

I have a web page that displays some data. When they click a submit button, I want to run a report. But I would like to pass the start year/month and end year/month values that the user already entered on the web page to the report. Here is what my url looks like when the report is displayed:

http://xyzserver/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fDevicesAllNew&rs:Command=Render&StartYYMM=201007&EndYYMM=201008

But my report displays the 2 textboxes for my StartYYMM and EndYYMM parameters as empty. What am I doing wrong? I did a google search and I saw something about using ReportServer instead of ReportManager. I notice at the top of the browser when I run my report, it reads "Report Manager - Windows Internet Explorer". Is this correct?

View 3 Replies

SQL Reporting :: Passing Parameters From ReportViewer To Local Report?

Jan 5, 2011

I am developing a web app containing an embedded Reportviewer control, a dropdownlist and Ajax TabContainer. The ReportViewer refreshes the report for every tab click in the TabContainer or for every SelectedIndexChanged event of the dropdownlist. The report I am generating is a 6-month trending report displaying statistical data for the last 6 months from the month and year selected in the dropdownlist. I have used Report Parameter to pass the selected date value (from dropdownlist) from the code to the Report (.rdlc). Using Expressions in report file I have displayed last 6 months names from the passing date value. The C# code looks like this.

ReportParameter p1 =
new
ReportParameter("ReportParameter1", [code]....

The problem is I am not able to set parameters more than once using SetParameters. I will need to pass the parameter value for (a)Everytime the dropdownlist item for month is changed (b) Everytime the TabContainer ActiveTab is changed (c) When the page loads for first time displaying the report for first time. Can someone advise how to pass different values for the same report parameter under different scenarios? Can we change the parameter value passed once it has been set using SetParameters?

View 1 Replies

SQL Reporting :: Pass Parameters To SSRS Subscriptions Using VS2005?

Oct 1, 2010

I have created SSRS reports and built a user UI to run these reports. Now when creating
SSRS subscriptions in report Manager, is it even possible to programmatically pass the

delivery method (email or file share), To email address, scheduled time and date, etc from my front-end UI to the Report Manager?

View 1 Replies

SQL Reporting :: Cascade Parameter In The Report Parameters Without Using Dataset ?

Aug 12, 2010

Can we do Cascading parameter without having dataset.

In the report parameters for SSRS 2005

I am have two columns

one column second column
two wheeler cycle
scooter
herohonda
three wheeler Auto
four wheeler car
sumo
Jeep

View 3 Replies

SQL Server :: Sub Query In Cross Table Query To Create Statistics

Mar 2, 2011

I am trying to create statitics for game downloads and am having dificulty with a sub part of my query. the goup by command is not having the disired result and i think i have been looking at it too long to see what i am doing wrong. [Code]....

At the moment it is producing each result in many rows when only 4 rows should appear. its the download column that is doing it. needs to be sub queried or something to display total in relation to month,gameid,userid.

Month-download-GameID-UserID

1 1
1 1

1 1
1 1

View 2 Replies

SQL Reporting :: Displaying A Localized Date Format In Report Parameters

Dec 2, 2010

I have several reports that I have published to a SQL 2008 report server with parameters that are dates (DateTime format). For these parameters, a calendar icon is displayed next to the textbox to allow users to select the date via mouse. Some of my reports are used by people overseas (England), where the date format is dd.mm.yy (instead of mm/dd/yyyy).

I went to the report properties, and changed the Language property from "un-US" to "en-GB". The affect of this is that all of the dates that are displayed on my report now show the date format of [dd.mm.yy] (which is good). However, the textbox where they specify the report parameter still shows the old mm/dd/yyyy format.

Can this be changed somehow? I have looked around, but could not find a setting that would apply to this. Or is this a client-side setting (in other words, when viewed overseas, it takes the "native" date format)?

View 4 Replies

SQL Reporting :: Display SSRS Report Based On Winform Parameters?

Jan 25, 2011

I need to display report in winform based on winform parameters.

I'm ve in SSRS report via URL, I deployed in Reportviewer in winform . Now I need to display that report based on my win form parameters i.e., I'm ve in textbox and button.

I ve to enter related item in textbox and when I press the button the report should be viewed based on this values. Remember I'm calling report via URL.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved