Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Binding Cube date dimension member to calendar control(DatePicker) in SSRS


Binding Cube date dimension member to calendar control(DatePicker) in SSRS

Author
Message
ravisharvind
ravisharvind
SSC Eights!
SSC Eights! (802 reputation)SSC Eights! (802 reputation)SSC Eights! (802 reputation)SSC Eights! (802 reputation)SSC Eights! (802 reputation)SSC Eights! (802 reputation)SSC Eights! (802 reputation)SSC Eights! (802 reputation)

Group: General Forum Members
Points: 802 Visits: 50
Hi,

I have a cube " Request Time " dimension member which is given below

[Request Time].[Only Date].&[01/01/2008]

My requirement is I want to somehow bind this cube member to the calendar control(datepicker) in SQL Server Reporting Services 2005 so that I will be able to filter the data based on this parameter.

But when I use datepicker for this parameter, I am getting the following error message.

An error occured during local processing.
An error has occured during report processiong.
Query execution failed for data set 'TestDataSet'.
Query(47,14) the restrictions imposed by the CONSTRAINED flag in the STRTOSET function were violated.

The MDX query which I am using is given below:

SELECT
NON EMPTY
{[ExpectedDiffHours],[CompletionDiffHours]} ON COLUMNS,

NONEMPTY
(
CROSSJOIN
(
[Dim Requests].[Dim Requests].[Dim Requests].MEMBERS,
[Request Time].[Date].[Date].MEMBERS,
[Expected Time].[Date].[Date].MEMBERS,
[Action Completed Time].[Date].[Date].MEMBERS
)
,[Measures].[Fact Text Mining Count]
)
ON ROWS
FROM [JTrackDW Cube]
WHERE ( IIF( STRTOSET(@RequestDate,CONSTRAINED).Count = 1, STRTOSET(@RequestDate,CONSTRAINED), [Request Time].[Only Date].currentmember))

But when I use the same member as string in the report parameters list I am able to filter the data.

So anybody please help me to get this working...
Any feedback or suggestions is welcome.Smile

Thanks in advance,
Arvind.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search