SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Cascading Date Filters


Cascading Date Filters

Author
Message
Rob Taylor
Rob Taylor
SSChampion
SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)SSChampion (11K reputation)

Group: General Forum Members
Points: 11645 Visits: 1699
I've got a PPS BeginDate and EndDate filter (MDX filter) created. The source query is:
NonEmpty( Hierarchize( Descendants( [Date].[Calendar Day].[All], [Date].[Calendar Day].[Year], SELF_AND_AFTER) ), [Measures].[Metric Quantity] )



This allows the user to pick from any level of my date hierarchy: Year, Quarter, Month or Day.

If the user selects at the Quarter level in the Begin Date, I only want quarter level values to appear in the End Date filter. Both of these MDX queries do that (bring back all values at the quarter level)
SELECT
DESCENDANTS (
[Date].[Calendar Day].[Quarter].&[20143].Level, 0, SELF
) ON ROWS,
{} ON COLUMNS
FROM [RoyaltyPMA];

or

SELECT
[Date].[Calendar Day].[Quarter].&[20143].Level.Members ON ROWS,
{} ON COLUMNS
FROM [RoyaltyPMA];



But when I try to implement this in the filter's connection formula (End date has a connection to Start Date's Member Unique Name)

DESCENDANTS (<<UniqueName>>, 0, SELF)

or

<<UniqueName>>.Level.Members



It still brings back all of values for all levels in the End Date filter.

Any ideas?

Thanks,
Rob
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