dbTalk Databases Forums  

Giving User Defined Names to the Fixed columns in a MDX query

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


Discuss Giving User Defined Names to the Fixed columns in a MDX query in the microsoft.public.sqlserver.olap forum.



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

Default Giving User Defined Names to the Fixed columns in a MDX query - 12-02-2005 , 11:32 AM






Hi,

I am using Oledb with MSOLAP provider for returning results of MDX query
to the .Net environment. My question here is that as i can change the caption
of Measure columns which are returned from the MDX query, is it possible to
change the caption of Fixed columns also in the MDX statement? I tried lot of
things but nothing turned out to be successful.

Thanks
Deepak Vij

Reply With Quote
  #2  
Old   
Denny Lee
 
Posts: n/a

Default Re: Giving User Defined Names to the Fixed columns in a MDX query - 12-02-2005 , 03:14 PM






You could always create a calculated measure whether in MDX or directly into
the cube to do this for you.

For example, if you have a measure called [Measures].[UserDCount] which you
want to return as User Distinct Count, then you could always create a
calculated measure within OLAP that is basically
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'

or within the MDX the same thing:
with
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'
select {
[Measures].[User Distinct Count]
} on columns, {
....

--
HTH!
Denny Lee
<dennyglee_at_hotmail_dot_com>

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi,

I am using Oledb with MSOLAP provider for returning results of MDX query
to the .Net environment. My question here is that as i can change the
caption
of Measure columns which are returned from the MDX query, is it possible
to
change the caption of Fixed columns also in the MDX statement? I tried lot
of
things but nothing turned out to be successful.

Thanks
Deepak Vij



Reply With Quote
  #3  
Old   
Deepak Vij
 
Posts: n/a

Default Re: Giving User Defined Names to the Fixed columns in a MDX query - 12-02-2005 , 04:31 PM



Hi Denny,

First of all, thanks for the reply.

You are correct while saying this for measures. but i actually wanted a
query for Fixed columns, the column which are created by 'On Rows'
specifications.

Hope this makes sense now. please let me know if you want any other
information regarding the same.

Regards,
Deepak Vij

"Denny Lee" wrote:

Quote:
You could always create a calculated measure whether in MDX or directly into
the cube to do this for you.

For example, if you have a measure called [Measures].[UserDCount] which you
want to return as User Distinct Count, then you could always create a
calculated measure within OLAP that is basically
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'

or within the MDX the same thing:
with
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'
select {
[Measures].[User Distinct Count]
} on columns, {
....

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:A2BE5233-1156-4934-9804-69F72CE58654 (AT) microsoft (DOT) com...
Hi,

I am using Oledb with MSOLAP provider for returning results of MDX query
to the .Net environment. My question here is that as i can change the
caption
of Measure columns which are returned from the MDX query, is it possible
to
change the caption of Fixed columns also in the MDX statement? I tried lot
of
things but nothing turned out to be successful.

Thanks
Deepak Vij




Reply With Quote
  #4  
Old   
Denny Lee
 
Posts: n/a

Default Re: Giving User Defined Names to the Fixed columns in a MDX query - 12-02-2005 , 06:04 PM



Hmm - are you referring to the name of the dimension (in the header row) in
this case or are you referring to the actual dimension members that show up
in the row listing? If you want to change the latter (the dimension
members), I would probably create a virtual dimension based on a member
property that has the member names you want to have (AS2k) or a new
attribute and/or hierarchy for AS2k5. If its the name of the dimension, you
could use the caption option in AS2k5 but you don't really have an option
for AS2k. Could you clarify this a little bit more? Thanks!

--
HTH!
Denny Lee
<dennyglee_at_hotmail_dot_com>

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote

Quote:
Hi Denny,

First of all, thanks for the reply.

You are correct while saying this for measures. but i actually wanted a
query for Fixed columns, the column which are created by 'On Rows'
specifications.

Hope this makes sense now. please let me know if you want any other
information regarding the same.

Regards,
Deepak Vij

"Denny Lee" wrote:

You could always create a calculated measure whether in MDX or directly
into
the cube to do this for you.

For example, if you have a measure called [Measures].[UserDCount] which
you
want to return as User Distinct Count, then you could always create a
calculated measure within OLAP that is basically
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'

or within the MDX the same thing:
with
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'
select {
[Measures].[User Distinct Count]
} on columns, {
....

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:A2BE5233-1156-4934-9804-69F72CE58654 (AT) microsoft (DOT) com...
Hi,

I am using Oledb with MSOLAP provider for returning results of MDX
query
to the .Net environment. My question here is that as i can change the
caption
of Measure columns which are returned from the MDX query, is it
possible
to
change the caption of Fixed columns also in the MDX statement? I tried
lot
of
things but nothing turned out to be successful.

Thanks
Deepak Vij






Reply With Quote
  #5  
Old   
Deepak Vij
 
Posts: n/a

Default Re: Giving User Defined Names to the Fixed columns in a MDX query - 12-02-2005 , 06:25 PM



Very true. I want the change the caption of dimension itself. Can you please
provide me some guidance to do the same?

Thanks
Deepak Vij

"Denny Lee" wrote:

Quote:
Hmm - are you referring to the name of the dimension (in the header row) in
this case or are you referring to the actual dimension members that show up
in the row listing? If you want to change the latter (the dimension
members), I would probably create a virtual dimension based on a member
property that has the member names you want to have (AS2k) or a new
attribute and/or hierarchy for AS2k5. If its the name of the dimension, you
could use the caption option in AS2k5 but you don't really have an option
for AS2k. Could you clarify this a little bit more? Thanks!

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:EC105B87-1DC2-43C1-95FB-95066E2E1F90 (AT) microsoft (DOT) com...
Hi Denny,

First of all, thanks for the reply.

You are correct while saying this for measures. but i actually wanted a
query for Fixed columns, the column which are created by 'On Rows'
specifications.

Hope this makes sense now. please let me know if you want any other
information regarding the same.

Regards,
Deepak Vij

"Denny Lee" wrote:

You could always create a calculated measure whether in MDX or directly
into
the cube to do this for you.

For example, if you have a measure called [Measures].[UserDCount] which
you
want to return as User Distinct Count, then you could always create a
calculated measure within OLAP that is basically
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'

or within the MDX the same thing:
with
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'
select {
[Measures].[User Distinct Count]
} on columns, {
....

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:A2BE5233-1156-4934-9804-69F72CE58654 (AT) microsoft (DOT) com...
Hi,

I am using Oledb with MSOLAP provider for returning results of MDX
query
to the .Net environment. My question here is that as i can change the
caption
of Measure columns which are returned from the MDX query, is it
possible
to
change the caption of Fixed columns also in the MDX statement? I tried
lot
of
things but nothing turned out to be successful.

Thanks
Deepak Vij







Reply With Quote
  #6  
Old   
Deepak Vij
 
Posts: n/a

Default Re: Giving User Defined Names to the Fixed columns in a MDX query - 12-07-2005 , 07:58 PM



Does somebody know about this?

Thanks in advance,
Deepak Vij.

"Deepak Vij" wrote:

Quote:
Very true. I want the change the caption of dimension itself. Can you please
provide me some guidance to do the same?

Thanks
Deepak Vij

"Denny Lee" wrote:

Hmm - are you referring to the name of the dimension (in the header row) in
this case or are you referring to the actual dimension members that show up
in the row listing? If you want to change the latter (the dimension
members), I would probably create a virtual dimension based on a member
property that has the member names you want to have (AS2k) or a new
attribute and/or hierarchy for AS2k5. If its the name of the dimension, you
could use the caption option in AS2k5 but you don't really have an option
for AS2k. Could you clarify this a little bit more? Thanks!

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:EC105B87-1DC2-43C1-95FB-95066E2E1F90 (AT) microsoft (DOT) com...
Hi Denny,

First of all, thanks for the reply.

You are correct while saying this for measures. but i actually wanted a
query for Fixed columns, the column which are created by 'On Rows'
specifications.

Hope this makes sense now. please let me know if you want any other
information regarding the same.

Regards,
Deepak Vij

"Denny Lee" wrote:

You could always create a calculated measure whether in MDX or directly
into
the cube to do this for you.

For example, if you have a measure called [Measures].[UserDCount] which
you
want to return as User Distinct Count, then you could always create a
calculated measure within OLAP that is basically
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'

or within the MDX the same thing:
with
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'
select {
[Measures].[User Distinct Count]
} on columns, {
....

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:A2BE5233-1156-4934-9804-69F72CE58654 (AT) microsoft (DOT) com...
Hi,

I am using Oledb with MSOLAP provider for returning results of MDX
query
to the .Net environment. My question here is that as i can change the
caption
of Measure columns which are returned from the MDX query, is it
possible
to
change the caption of Fixed columns also in the MDX statement? I tried
lot
of
things but nothing turned out to be successful.

Thanks
Deepak Vij







Reply With Quote
  #7  
Old   
Deepak Vij
 
Posts: n/a

Default Re: Giving User Defined Names to the Fixed columns in a MDX query - 12-14-2005 , 12:15 PM




Hi Deepak,

How are you doing? Do you know something about this issue?

Thanks
Deepak Vij.

"Deepak Vij" wrote:

Quote:
Does somebody know about this?

Thanks in advance,
Deepak Vij.

"Deepak Vij" wrote:

Very true. I want the change the caption of dimension itself. Can you please
provide me some guidance to do the same?

Thanks
Deepak Vij

"Denny Lee" wrote:

Hmm - are you referring to the name of the dimension (in the header row) in
this case or are you referring to the actual dimension members that show up
in the row listing? If you want to change the latter (the dimension
members), I would probably create a virtual dimension based on a member
property that has the member names you want to have (AS2k) or a new
attribute and/or hierarchy for AS2k5. If its the name of the dimension, you
could use the caption option in AS2k5 but you don't really have an option
for AS2k. Could you clarify this a little bit more? Thanks!

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:EC105B87-1DC2-43C1-95FB-95066E2E1F90 (AT) microsoft (DOT) com...
Hi Denny,

First of all, thanks for the reply.

You are correct while saying this for measures. but i actually wanted a
query for Fixed columns, the column which are created by 'On Rows'
specifications.

Hope this makes sense now. please let me know if you want any other
information regarding the same.

Regards,
Deepak Vij

"Denny Lee" wrote:

You could always create a calculated measure whether in MDX or directly
into
the cube to do this for you.

For example, if you have a measure called [Measures].[UserDCount] which
you
want to return as User Distinct Count, then you could always create a
calculated measure within OLAP that is basically
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'

or within the MDX the same thing:
with
member [Measures].[User Distinct Count] as '[Measures].[UserDCount]'
select {
[Measures].[User Distinct Count]
} on columns, {
....

--
HTH!
Denny Lee
dennyglee_at_hotmail_dot_com

Blog at:: http://spaces.msn.com/members/denster/



"Deepak Vij" <DeepakVij (AT) discussions (DOT) microsoft.com> wrote in message
news:A2BE5233-1156-4934-9804-69F72CE58654 (AT) microsoft (DOT) com...
Hi,

I am using Oledb with MSOLAP provider for returning results of MDX
query
to the .Net environment. My question here is that as i can change the
caption
of Measure columns which are returned from the MDX query, is it
possible
to
change the caption of Fixed columns also in the MDX statement? I tried
lot
of
things but nothing turned out to be successful.

Thanks
Deepak Vij







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.