MDX, Actions and Calculated Members as a filter

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I have a problem trying to return an action when I'm using a calculated
member to aggregate multiple items.

In the MDX below, I want to see the measure [Deal Count] for all
children of the All level of product for 2 days where 38503 and 38504
are date id's. The MDX is generated by a 3rd party tool.

WITH MEMBER [Bookdate].[yqmd].[All Bookdate].[ Aggregation]
AS ' AGGREGATE( { [Bookdate].[yqmd].[The Date].&[38503],
[Bookdate].[yqmd].[The Date].&[38504] }) ', SOLVE_ORDER = 0

SELECT
NON EMPTY { [Measures].[Deal Count] } ON COLUMNS ,
NON EMPTY { [Product].[All Product].CHILDREN } ON ROWS
FROM
[fxdistribution]
WHERE
( [Bookdate].[yqmd].[All Bookdate].[ Aggregation] )


I then want the user to be able click on a cell to get a drillthrough
via an action that would call a custom web page.

So I have created a cell-level action with the following value:
"http://servername/results.asp?DateIDs="; +
[BookDate].[yqmd].CurrentMember.Properties("key") + "&Product=" +
[Product].CurrentMember.Properties("key")


Now, if I DON'T have the calculated member to aggregate the 2 days for
the filter, and I just have 1 day selected - this MDX works fine - I
get my action working.

But when I DO have the calculated member to aggregate the 2 days for
filtering, I get an error from the 3rd party application when firing
the action:
"Error Occurred during attempt to iterate schema"

I presume this is because I'm using the CurrentMember method, when in
actual fact, I've really got more that one member - i.e. 2 days.

Is there an MDX statement I can use in this action that would list all
of the selected days? (i.e.. something like: [day1],[day2])

OR

Is there another way to do this?

(I have tried native drillthroughs, but have hit other show stopping
limitations of drillthrough to detail against calculated members.)

.



Relevant Pages

  • Re: How to extract the underlying MDX
    ... introduced in AS2005 MDX to stop MDX injection attacks (which I guess might ... > validating if that's an valid Dimension member. ... what's the function of the CONSTRAINED flag? ...
    (microsoft.public.sqlserver.olap)
  • Re: Null to replace Columns in Analysis Services
    ... do is to return the default member. ... number of columns in order to make a chart.In SQL, ... requesting data for all of the columns I could replace the column name ... I cannot get this to work in MDX... ...
    (microsoft.public.sqlserver.olap)
  • RE: MDX function AGGREGATE very slow, please help
    ... I have to hide the data "manually" using slices on allowed stores. ... > Could you let me know why you use Aggregate function in this way? ... > WITH MEMBER Geography.Total AS 'AGGREGATE ... > | difference is in the WHERE slice. ...
    (microsoft.public.sqlserver.olap)
  • Re: Bug in CurrentMember.Name
    ... straightforward - I've come across some MDX recently where I really had no ... One basic rule of multidimensional analysis is that hierarchies ... Also, when the sample MDX query is run in SS Management Studio, the member ... Resellers' for every row while the calculated measure Reseller Order ...
    (microsoft.public.sqlserver.olap)
  • Re: Can we get Member Key & Name in the same MDX Query?
    ... The key is available as a property of a member in MDX. ... >> SQL BI Product Unit (Analysis Services) ...
    (microsoft.public.sqlserver.olap)