dbTalk Databases Forums  

MDX Help, want to show calculated value Name

microsoft.public.sqlserver.olap microsoft.public.sqlserver.olap


Discuss MDX Help, want to show calculated value Name in the microsoft.public.sqlserver.olap forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
AW
 
Posts: n/a

Default MDX Help, want to show calculated value Name - 06-16-2005 , 06:29 PM






I display an MDX statement on a web page and I want it to have drillthrough.
I was thinking that I could just insert http text into the MDX and it would
show up as a hyperlink on the page. This works, but I am trying to pass in
the row value as the parameter so I can make the drillthrough page filter on
that value. This also works until I try to do it on a calculated value. So,
I make a calculated "Value 3" equal to Value 1 + Value 2. It won't pass me
the name "Value 3", it passes me the name "Value 1 Value 2". Below is an
example of what I am trying from Food Mart. I want the bottom link to say
"www.test.com?test=PostHSDegree, not "www.test.com?test=Bachelors
Degreewww.test.com?test=Graduate Degreee". Any help, please?

WITH MEMBER [Education Level].[Post HS Degree] As '[Education
Level].[Bachelors Degree] + [Education Level].[Graduate Degree]',
solve_order=1
MEMBER [Measures].[HyperLink] As '"www.test.com?test=" + [Education
Level].currentmember.name'
SELECT {[measures].[Unit Sales],[measures].[HyperLink]} on columns,
{[Education Level].[Bachelors Degree], [Education Level].[Graduate Degree],
[Education Level].[Post HS Degree]}
on rows from Sales

Reply With Quote
  #2  
Old   
OLAPMonkey (http://olapmonkey.blogspot.com/)
 
Posts: n/a

Default Re: MDX Help, want to show calculated value Name - 06-17-2005 , 10:32 AM






You need to bump up the solve order of your second calculated member to
an equal or greater value than the first one. Like this...

WITH MEMBER [Education Level].[Post HS Degree] As
'
[Education Level].[Bachelors Degree] + [Education Level].[Graduate
Degree]
'
, solve_order=1
MEMBER [Measures].[HyperLink] As
'
"www.test.com?test=" + [Education Level].currentmember.Name
'
, solve_order=1
SELECT
{
[measures].[Unit Sales],[measures].[HyperLink]
} on columns,
{
[Education Level].[Bachelors Degree], [Education Level].[Graduate
Degree], [Education Level].[Post HS Degree]
} on rows
from Sales

Just one of the many mysteries of the nebulous solve order and pass
order.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.