Can't Get Mdx Parameter To Refresh SQL Data Set

May 20, 2008



Hi, I have an OLAP data source that includes a date field "DateLongName" (has format e.g. May 08, 2008) , on which I checked the box when setting up the data set to indicate it is a parameter. This of course creates the attendant MDX data set that can be used for available values so that the user can pick from the various dates to choose the date they want to filter data on. So far so good.

Also in this report I have a relational data source that populates a chart that I would like to update when the user chooses the date from the above OLAP data source.

My thoughts were to create another MDX data source (called DayConstraint) like

SELECT {} ON COLUMNS, (STRTOMEMBER(@DimDateDateLongName,CONSTRAINED)) ON ROWS FROM [DailySalesCube]

Then, for my relational source, it would just be Select * from table where date=@DayConstraint

Nice in theory, but the DayConstraint variable doesn't change when the user changes the value in the olap picklist. So, the "DateLongName" has a default of previous day, so if it was May 8th, both the "DateLongName" and "DayConstraint" show May 7th. But, when you pick a different date (from the available values when the report has ran), say May 6th, the "DateLongName" changes, but the "DayConstraint" doesn't update, so of course my relational data set doesn't update.

If I pull in the DayConstraint data into a text box to look at the value (=First(Fields!Date_Long_Name.Value, "DayConstraint")), the data set is updating correctly when one changes the values in the OLAP pick list. Wish there was some way in my relational query to do something like Select * from table where date=Fields!Date_Long_Name.Value, "DayConstraint", but can't see anyway to make this work.

I am starting to think you can't use cascading parameters like this - can anyone confirm this, and if I am trying to do the impossible, any ideas on how this could be done in another fashion? Have been beating my head against the desk for a couple days on this, so any help would be very much appreciated.

Thanks!

View 1 Replies


ADVERTISEMENT

Strange Refresh Of The Parameter Area

Sep 27, 2005

Hi,

View 16 Replies View Related

Parameter Slow And Page Refresh

Apr 8, 2008

Hi,

I have a problem with the parameters in SSRS2005.
In fact I have for example a parameter month on a MDX request (See below). When I change the value in the listbox, Reporting services post the page and I am waiting 3s before to click on "view report"
Do you have an idea why this post is called ? For me there is no reason !!!



WITH

MEMBER [Measures].[ParameterCaption] AS '[DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].CURRENTMEMBER.MEMBER_CAPTION'

MEMBER [Measures].[ParameterValue] AS '[DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].CURRENTMEMBER.UNIQUENAME'

MEMBER [Measures].[ParameterLevel] AS '[DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].CURRENTMEMBER.LEVEL.ORDINAL'



SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue], [Measures].[ParameterLevel]

} ON COLUMNS ,


ORDER(

[DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].[CAL - Mois].MEMBERS,[Measures].[ParameterValue],DESC) ON ROWS


FROM ( Select ( filter([DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].[CAL - Jour].ALLMEMBERS,

CDate([DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].Properties( "CAL - Date" ))>= CDate(vba!format(vba!day(vba!now()),"00") + "/" + vba!format(vba!month(vba!now()),"00") + "/" + vba!format(vba!year(vba!now())-2,"0000"))

AND

CDate([DIM CALENDRIER].[ANNEE SCOL - MOIS - JOUR].Properties( "CAL - Date" ))<= CDate(vba!format(vba!day(vba!now()),"00") + "/" + vba!format(vba!month(vba!now()),"00") + "/" + vba!format(vba!year(vba!now()),"0000"))

)) ON COLUMNS


FROM [TDB MENSUEL])

View 1 Replies View Related

ReportViewer (web Control) - Parameter Change Refresh

May 13, 2007

I have created an ASP.NET website with a ReportViewer on. The report renders fine, but when I change one of the parameters (manually), the report seems to invalidate itself and a blank while area is drawn. I would like the same behaviour as in the WinForms variant, where rhe rendered report remains the same until the 'View Report' button is pressed.



Is this possible?



Regards Andreas

View 1 Replies View Related

Reporting Services :: Automatically Select All In Parameter After Refresh

Apr 20, 2015

Is it possible to set the parameter option to "Select all" after the options in the parameter have been filtered by another parameter? For example:

Parameter Area contains Europe, North America, South America.
Parameter Country contains the country's that are in Europe, North America and South America.

When the Area Parameter is set to Europe, the country parameter only contains the country's that are in Europe. When you want to see the complete dataset in the report again, you change the Area Parameter to Europe, North America and South America again, and press view report.

Then the Country Parameter only has the country's that are in Europe selected, so the dataset is still filtered to the European country's. Is it possible to automatically set the country parameter to select all after the Area parameter has been se back to all Area's again?

View 3 Replies View Related

Reporting Services Parameter Do Not Refresh And Display Correct Value

Apr 4, 2008

I am creating an RS with four parameters -

Parameter 1 = Date Period ex. 20081102
Parameter 2 = Start Date ex. 11/02/2008
Parameter 3 = End Date ex. 12/02/2008
Parameter 4 = Description ex. Period 20081102

For Parameter 2 and 3 it will have available values in a Date Range
ex. for Period 20081102 it will have a date range
for Parameter 2 = from 10/02/2008 - 12/02/2008
for Parameter 3 it will have from 11/02/2008 - 12/02/2008


The process flow goes like this:

1. I'll select value from parameter 1
2. Automatically parameter 2,3 and 4 should display corresponding values.
3. It works well on first try
4. if i'll try selecting another value for Parameter 1,
5. As expected it should display again the corresponding values for the 3 parameters but Parameter 2 is retaining the value for the previous Parameter.

Why is it happening?
Does it have something to do with the date range?
How does the sequencing for RS happens?
This scenario happens when date ranges for each Date Period have common values.



View 4 Replies View Related

Refresh Data

May 12, 2005

I want refresh data de SQL Server, every certain time at night, but I want that it does only, automaticy.

In SQL sentencs or DTS
What I can do. Thanks

View 1 Replies View Related

REFRESH DATA WAREHOUSE

May 21, 2007

I€™m making warehouse for our HMIS (healthcare management information system)by using SSIS. I€™m facing some problems now, could you please help me to solve my problem.



Brief idea about my Warehouse:
Source: oracle 9i
Destination: Sql server 2005
ETL tool: SSIS



Problems:

How to refresh or load the current data to data warehouse.(now i'm using truncate sql task for deleting old/entire data for each packages, i really dont want to use in the production) . For example: The patient admissions data is adding everyday so i want to load the current data into my warehouse.
Could you pls suggest me good solution for this?


Refresh Cycle timings: is there any task available in SSIS?


current status:

First Time load completed, i set one Execute Sql statement ctrl flow task for Truncate the existing loaded data in the sql server 2005. and then again i process one data flow task for loading the data from oracle to sql server.

View 8 Replies View Related

Refresh Data From Production To Development

Jul 23, 2005

Hi all, I've been assigned a task of refreshing data from theproduction env to development env.what i got is a backup file of a db in the prod env, i now need tomake that into the development env.I can restore it to the dev env no problem, but the warnings i got arethat the tables owner in prod and dev env need to be different, thatis, owner is A in prod env and owner is B in dev env.So I need to:1) restore the db in dev env2) change table owner from A to B3) change related triggers4) change related viewsCan anyone suggest me an approach that is most efficient?Thanks a lot.

View 2 Replies View Related

Dataset Doesn't Refresh Data

Jan 16, 2008



I 've done a store procedure(SP), one for 7 report's.
The problem that i have is that the dataset doesn't refresh cols from the SP, how can i do ..i need all the columnsi n order to put them in the report.

Thks

Karla

View 3 Replies View Related

Power Point :: Data Refresh More Than Once A Day

Jun 23, 2010

Is it possible to parameterize SharePoint so that the PowerPoint data refresh is done more than daily ? There is a daily, weekly and monthly entry in the configuration panel, but it seems there is no way to do it more frequently. Sounds rather odd, as there are lots of businesses where the refresh must be done (and can be done) during lunchtime...

I am open to any non-standard solution : SharePoint web service, capturing the HTTP frame when changing the parameter with the ASAP checkbox activated and replaying it later.

View 4 Replies View Related

Refresh Page When Database Data Is Update

Apr 18, 2006

Hi All,
Is it possible to refresh the web page when certain table data is updated?  And I cannot use the auto-refresh feature.  Thank you very much.
 

View 1 Replies View Related

SqlDataSource - Need To Refresh Grid When Data Updated Programmatically

Nov 27, 2007

I am sending a GUID to a form via the query string.  If it exists I use helper functions to load most of the form text boxes.  However, if it does not then a blank form is presented and the GUID is stored in a hidden field. 
Regardless, I use this hidden field to populate a grid that is attached to a sqldatasource.
If I then add new datarows to the backend database programmatically, I cannot 'requery' the datasource to include those row upon a postback.  I cannot seem to find a simple way to force the sqldatasource to rerun the query.
Can anyone help.

View 2 Replies View Related

Power Point :: Hourly Data Refresh On SharePoint?

Aug 28, 2013

I have SharePoint 2010, which I have uploaded a PowerPivot model onto.

Currently it doesn't seem like I could setup the Data Refresh service to refresh my model more frequent than once a day. The Data Refresh configuration page looks like this:

Which doesn't show an option for anything more frequent than daily.

I have also tried to refresh the model's database directly on the Tabular SSAS instance (which SharePoint is using to store PowerPivot models) via SSIS or XMLA, but I get an error saying the tabular model is in "ReadOnly" mode, which I could potentially bypass (by detaching and re-attaching the model), but thats starting to sound abit too hacky.

Is there any way I could refresh my SharePoint uploaded PowerPivot model more than once daily?

View 6 Replies View Related

How Do You Deal With Page Refresh After A Filter Has Been Applied To Original Data?

Mar 14, 2006

I have added a page refresh in combination with 'Command Notification' to ensure that my data is fresh,( it is updated on the sql server database approx. every 5 mins).
However, I also allow filtering on the table contents and every time I refresh the filtering is lost. Is it possible to maintain the filtering through the refresh?
<meta http-equiv="refresh" content="30"/>..<asp:SqlDataSource ID="SqlDataSource1" runat="server" ..SelectCommand="SELECT ... EnableCaching="true" CacheDuration="Infinite" CacheExpirationPolicy="Absolute" SqlCacheDependency="CommandNotification" >
 

View 1 Replies View Related

Reporting Services :: Dataset Doesn't Refresh Data In SSRS

Nov 2, 2009

the Dataset in my report doesn't update the fields' values from the database. I refresh the dataset manualy in the SQL Server Business Intelligence Development Studio to see the new values in the report.

View 14 Replies View Related

How To Refresh A Data Source View And Autogenerate/Re-Deploy The Corresponding Report Model

Jan 9, 2007

Hi everyone!,

Our team is new to SSRS and we are trying to figure out how to refresh the data source view, autogenerate the corressponding report model and Re-Deploy the Report Model (rewrite existing Report Model) on the server on a periodoc basis or trigger the whole action whenever there is a change in the database on some specific tables.

We prefer to do this action through a Agent job ( a diff approach is also welcome).

Are there any stored procs out there?

Appreciate your time.

-PN



View 6 Replies View Related

Power Pivot :: Unable To Refresh Report Data When Send To Other Member In Team

May 28, 2015

I am using excel 2010 and SQL server as a data source. When I create a report with the User name "demo_user" which has db_writer access, and mail it to the colleague , he could not refresh the data with the "demo_user" credentials and apparently its throwing user name or password invalid. The one who created only could be able to refresh the data.

What should I do If other people want to refresh the data? How could I fix this issue? We are using SQL server 2012 and excel 2010 powerpivot. 

View 2 Replies View Related

Reporting Services :: Refresh SSRS Report As Soon As Its SSAS Cube Data Source Is Processed?

Oct 12, 2015

how to trigger report's refresh following its underlying SSAS cubes process?

I want to keep reports data updated at all times, especially when this happens while user is already browsing the report..

I don't want to set an auto refresh for the report every 5 minutes as my cube is processed only one time during the day...

View 8 Replies View Related

RS 2005: Stored Procedure With Parameter It Runs In The Data Tab But The Report Parameter Is Not Passed To It

Feb 19, 2007

Hello,
since a couple of days I'm fighting with RS 2005 and the Stored Procedure.

I have to display the result of a parameterized query and I created a SP that based in the parameter does something:

SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
CREATE PROCEDURE [schema].[spCreateReportTest]
@Name nvarchar(20)= ''

AS
BEGIN

declare @slqSelectQuery nvarchar(MAX);

SET NOCOUNT ON
set @slqSelectQuery = N'SELECT field1,field2,field3 from table'
if (@Name <> '')
begin
set @slqSelectQuery = @slqSelectQuery + ' where field2=''' + @Name + ''''
end
EXEC sp_executesql @slqSelectQuery
end

Inside my business Intelligence Project I created:
-the shared data source with the connection String
- a data set :
CommandType = Stored Procedure
Query String = schema.spCreateReportTest
When I run the Query by mean of the "!" icon, the parameter is Prompted and based on the value I provide the proper result set is displayed.

Now I move to "Layout" and my undertanding is that I have to create a report Paramater which values is passed to the SP's parameter...
So inside"Layout" tab, I added the parameter: Name
allow blank value is checked and is non-queried

the problem is that when I move to Preview -> I set the value into the parameter field automatically created but when I click on "View Report" nothing has been generated!!

What is wrong? What I forgot??

Thankx for any help!
Marina B.





View 3 Replies View Related

Reporting Services :: Share Point List Data Set Parameter Allow Null In Multivalue Drop Down Parameter

Aug 28, 2015

my dataset from sharepoint list. and this dataset value assign to parameter. i want when no any parameter is selected than it should filter like "ALL". when i select alow null value it give me prompt error you  can not select null in multivalue parameter.How can i do it. i am using share point list.

View 3 Replies View Related

Two Parameters Question? Second Parameter Should Get Data Based On First Parameter Selection.

Jan 8, 2007

I have two parameters both are related to each other.

second parameter should get filled based on the selection of the first one which is project.

the first paramater is project, once the project is selected it should bring the all the contracts related to that project.

Please is it possible...



Thank you very much for all the helpful info.

View 5 Replies View Related

Power Pivot :: Auto Refresh Excel Table (Not Pivot Table) Using Data Source

Jul 8, 2015

Is it possible to generate automatic refresh of excel 2013 table which displays some table of a power pivot model on file open?? I dont want to use pivottable (which supports this ...)

View 2 Replies View Related

Power Pivot :: Pivot Table Loses Text Wrapping For Text Data Upon Refresh

Apr 29, 2015

I have a pivot table that connects to our data warehouse via a PowerPivot connection.  The data contains a bunch of comment fields that are each between 250 and 500 characters.  I've set the columns in this pivot table to have the 'Wrap Text' set to true so that the user experience is better, and they can view these comment fields more clearly.

However, whenever I refresh the data, the text wrapping un-sets itself.  Interestingly, the 'Wrap Text' setting is still enabled, but I have to go and click it, then click it again to actually wrap the text.  This is very burdensome on the user, and degrading the experience.

Any way to make this text wrapping stick so that I don't have to re-set it every time I refresh the data?

View 2 Replies View Related

How To Refresh

Nov 9, 2005

sql2000

I have an existing data warehouse that is refreshed nightly from system1.

We will be moving to a new system2 1/1/06.
The old system1 will be phased out by the end of 2006.
Several tables on system2 will have different keys.

I have to move the data from both systems in the data warehouse.

Here's the issue.
I have to totaly refresh the data warehouse nightly.
Once system2 is phased out how do I keep the data from system1
and refresh only data from system2.

View 7 Replies View Related

Need Refresh Connection Or Something ?

Jun 23, 2007

HI,
I have a problem with  the data that I want to delete and insert new one on my SQL.It will work if I just delete a row. And work well if I just insert a row.But it will not work if I delete and insert at once on one procedure.
Here's the code :
    Protected Sub RolesRadioButtonList_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RolesRadioButtonList.SelectedIndexChanged        Session("CurrentRoleId") = Me.RolesRadioButtonList.SelectedValue        ' Call Sub RemoveUsersInRoles        RemoveUsersInRoles()        ' Call Sub AddNewUsersInRoles        AddNewUsersInRoles()    End Sub        Sub RemoveUsersInRoles()        '   Create SQL database connection        Dim sqlConn As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True")        Dim cmd As New SqlCommand        cmd.CommandType = CommandType.Text        '   Delete that row with correct UserId        cmd.CommandText = "DELETE aspnet_UsersInRoles WHERE (UserId = '" & Session("CurrentUserId") & "')"        cmd.Connection = sqlConn        sqlConn.Open()        cmd.ExecuteNonQuery()        '   Close SQL connecton        sqlConn.Close()    End Sub        Sub AddNewUsersInRoles()        '   Create SQL database connection        Dim sqlConn As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|ASPNETDB.MDF;Integrated Security=True;User Instance=True")        sqlConn.Open()        '   Create new row with new UserId        Dim sqlString As String = "INSERT INTO aspnet_UsersInRoles (UserId, RoleId) VALUES( '" & Session("CurrentUserId") & "','" & Session("CurrentRoleId") & "')"        Dim sqlComm As New SqlCommand(sqlString, sqlConn)        Dim sqlExec As Integer = sqlComm.ExecuteNonQuery        '   Close SQL connection        sqlConn.Close()    End Sub-------------------------------------------
I can delete the row if I call 'RemoveUsersInRoles'And I can insert new one if I call 'AddNewUsersInRoles'
But if 'RolesRadioButtonList_SelectedIndexChanged' is called, it will not work well.If the row not exist, it will insert new row. And that what I want.But If the row is exist, It wont delete that row and wont insert the new one. That's the problem.
Do I need some 'pause' or 'refresh connection' here ?
Thank You.

View 2 Replies View Related

Refresh Issue

Mar 21, 2001

Our application is C++ and datbases are Sybase. We are 11.5.1 Sybase. Lately some of our clients have complained about data refresh problems. That if a user has made some changes within the application then these data changes are taking long time to reflect to other users in the system. We do have in our application processes to automatically refresh data for other users but for some odd reason it is not working properly. Also every day we run sp_recompile and sp_stat on the tables and stored procs. Any ideas or leads ?

Thanks
Gohar

View 1 Replies View Related

How Do I Refresh A View?

Jun 25, 2007

You know how I mentioned before that I was working with a database with a (bunch of) view(s) that are defined like this...

CREATE VIEW MyView AS
SELECT * FROM ExampleTable

Well, after altering the underlying table I noticed that the view is not picking up the new columns which leads me to believe I need to refresh the view.

Is this possible, if so, how?
SS 2K

View 14 Replies View Related

RECOMPILE / REFRESH UDF?

Dec 19, 2007

Is there a way (command or stored procedure) to RECOMPILE or REFRESH a USER DEFINED FUNCTION? I can recompile SPs with sp_recompile and refresh views with sp_refreshView, but I could not find any way to refresh User-defined functions (some of them are like views, with parameters).

Environment: SQL 2005 SP2.


Thanks !

View 4 Replies View Related

Nightly Refresh

Sep 19, 2007

Please help.I have Database A (Archived data), Database B (Transactional data).Both A and B do not have any timestamps in any tables.I need to bring A (only once because it is archived data) and B withonly differentials into Database C for reporting purposes.Currently C is cleared before loading B with differentials every nightand A is not loaded since it takes 15 hours to load.Now I want to bring A once and leave it and then bring B every nightwith differentials without clearing C.Please suggest some solutions.Thank You

View 1 Replies View Related

Refresh Default Value

Dec 14, 2006

Hello,



I have report parameters B with default from query.

This query depend on other report parameters A that updates befor report parameter B.

While user open the report and update report parameter A, the report parameter B get default value with the right default value but when user change his selection in parameter A, the default value in parameter B doesn't changed



Any idea ?

View 5 Replies View Related

Metadata Refresh?

May 15, 2006

What do you do to address this:

[OLE DB Source [1]] Warning: The external metadata column collection is out of synchronization with the data source columns. The column "objectName1" needs to be updated in the external metadata column collection.

A corollary question: what does right-clicking a package in Solution Explorer and clicking "Reload with Upgrade" do?

View 11 Replies View Related

Refresh In WebPage

Apr 3, 2008



Hi all...

when i select the 1st parameter in the report(in webpage) ... then the complete page is getting auto refreshed...same is happening for all the parameter selection...is it not possible to stop it from refreshing....

simply to say i want to get data without refreshing...

few ppl suggested me to use AJAX control but as iam not much familliar with AJAY iam trying to find some other way...can u help me pls....

Roopesh Babu V

View 1 Replies View Related







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