dbTalk Databases Forums  

Multiselect dimension

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


Discuss Multiselect dimension in the microsoft.public.sqlserver.olap forum.



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

Default Multiselect dimension - 10-05-2006 , 04:40 PM






Cube browser allow user to multiselect in a dimension, Is there anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
....
....


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan


Reply With Quote
  #2  
Old   
Jeje
 
Posts: n/a

Default Re: Multiselect dimension - 10-05-2006 , 09:47 PM






use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
Cube browser allow user to multiselect in a dimension, Is there anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan




Reply With Quote
  #3  
Old   
Kalyan
 
Posts: n/a

Default Re: Multiselect dimension - 10-05-2006 , 10:05 PM



Thanks JeJe, I want to create calculated member, how do i use axis function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index on all
the dimension columns, now it is taking about 10 min, Is this correct method,
I tried sp_updatestats and defrag index, finally i created index on dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

Quote:
use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan





Reply With Quote
  #4  
Old   
Kalyan
 
Posts: n/a

Default Re: Multiselect dimension - 10-05-2006 , 10:16 PM



how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Quote:
Thanks JeJe, I want to create calculated member, how do i use axis function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index on all
the dimension columns, now it is taking about 10 min, Is this correct method,
I tried sp_updatestats and defrag index, finally i created index on dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan





Reply With Quote
  #5  
Old   
Jéjé
 
Posts: n/a

Default Re: Multiselect dimension - 10-06-2006 , 09:09 AM



axis(1) return the row set.
This can include multiple dimensions & members.

to count 1 particular dimension only in this set:
extract(axis(1), <Dimension to extract>).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Thanks JeJe, I want to create calculated member, how do i use axis
function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index on
all
the dimension columns, now it is taking about 10 min, Is this correct
method,
I tried sp_updatestats and defrag index, finally i created index on
dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there
anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan







Reply With Quote
  #6  
Old   
Kalyan
 
Posts: n/a

Default Re: Multiselect dimension - 10-06-2006 , 12:56 PM



I entered formula like this in calculated member box
Cost Division is my dimension name

extract(axis(1), [Cost Division]).Count

Getting error msg.


Unable to update calculated member

Formula - no set holder - when referencing a named <set>

why i am getting this error

Thanks
Kalyan




"Jéjé" wrote:

Quote:
axis(1) return the row set.
This can include multiple dimensions & members.

to count 1 particular dimension only in this set:
extract(axis(1), <Dimension to extract>).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:6B493D16-DEF9-4BB4-82CF-966076D7BD9E (AT) microsoft (DOT) com...
how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Thanks JeJe, I want to create calculated member, how do i use axis
function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index on
all
the dimension columns, now it is taking about 10 min, Is this correct
method,
I tried sp_updatestats and defrag index, finally i created index on
dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there
anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan








Reply With Quote
  #7  
Old   
Jéjé
 
Posts: n/a

Default Re: Multiselect dimension - 10-06-2006 , 01:14 PM



try:
extract(axis(1), [Cost Division].[my hierarchy]).Count
or
extract(axis(1), [Cost Division].[attribute name]).Count

these formulas can produce errors if the user has nothing in rows or if the
Cost Division dimension is not used in the MDX source query.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
I entered formula like this in calculated member box
Cost Division is my dimension name

extract(axis(1), [Cost Division]).Count

Getting error msg.


Unable to update calculated member

Formula - no set holder - when referencing a named <set

why i am getting this error

Thanks
Kalyan




"Jéjé" wrote:

axis(1) return the row set.
This can include multiple dimensions & members.

to count 1 particular dimension only in this set:
extract(axis(1), <Dimension to extract>).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:6B493D16-DEF9-4BB4-82CF-966076D7BD9E (AT) microsoft (DOT) com...
how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Thanks JeJe, I want to create calculated member, how do i use axis
function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index
on
all
the dimension columns, now it is taking about 10 min, Is this correct
method,
I tried sp_updatestats and defrag index, finally i created index on
dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there
anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan










Reply With Quote
  #8  
Old   
Kalyan
 
Posts: n/a

Default Re: Multiselect dimension - 10-06-2006 , 01:31 PM



JeJe

Thanks for reply. I am new to mdx query,
how to i get attribute name. I created dimension through wizard, No where it
asked attibute, can u tell me how to get attibute name or define to a
dimension.



"Jéjé" wrote:

Quote:
try:
extract(axis(1), [Cost Division].[my hierarchy]).Count
or
extract(axis(1), [Cost Division].[attribute name]).Count

these formulas can produce errors if the user has nothing in rows or if the
Cost Division dimension is not used in the MDX source query.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:9B9E4A74-2AED-4E02-A439-1DEEAA22D1F5 (AT) microsoft (DOT) com...
I entered formula like this in calculated member box
Cost Division is my dimension name

extract(axis(1), [Cost Division]).Count

Getting error msg.


Unable to update calculated member

Formula - no set holder - when referencing a named <set

why i am getting this error

Thanks
Kalyan




"Jéjé" wrote:

axis(1) return the row set.
This can include multiple dimensions & members.

to count 1 particular dimension only in this set:
extract(axis(1), <Dimension to extract>).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:6B493D16-DEF9-4BB4-82CF-966076D7BD9E (AT) microsoft (DOT) com...
how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Thanks JeJe, I want to create calculated member, how do i use axis
function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index
on
all
the dimension columns, now it is taking about 10 min, Is this correct
method,
I tried sp_updatestats and defrag index, finally i created index on
dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there
anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan











Reply With Quote
  #9  
Old   
Kalyan
 
Posts: n/a

Default Re: Multiselect dimension - 10-06-2006 , 03:55 PM



hi

I tried like this

extract(axis(1), [Cost Division].(all)).Count

Still getting same error msg. please help me





"Kalyan" wrote:

Quote:
JeJe

Thanks for reply. I am new to mdx query,
how to i get attribute name. I created dimension through wizard, No where it
asked attibute, can u tell me how to get attibute name or define to a
dimension.



"Jéjé" wrote:

try:
extract(axis(1), [Cost Division].[my hierarchy]).Count
or

these formulas can produce errors if the user has nothing in rows or if the
Cost Division dimension is not used in the MDX source query.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:9B9E4A74-2AED-4E02-A439-1DEEAA22D1F5 (AT) microsoft (DOT) com...
I entered formula like this in calculated member box
Cost Division is my dimension name

extract(axis(1), [Cost Division]).Count

Getting error msg.


Unable to update calculated member

Formula - no set holder - when referencing a named <set

why i am getting this error

Thanks
Kalyan




"Jéjé" wrote:

axis(1) return the row set.
This can include multiple dimensions & members.

to count 1 particular dimension only in this set:
extract(axis(1), <Dimension to extract>).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:6B493D16-DEF9-4BB4-82CF-966076D7BD9E (AT) microsoft (DOT) com...
how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Thanks JeJe, I want to create calculated member, how do i use axis
function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster index
on
all
the dimension columns, now it is taking about 10 min, Is this correct
method,
I tried sp_updatestats and defrag index, finally i created index on
dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is there
anyway to
count how many dimension's value user selected. I am using AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan











Reply With Quote
  #10  
Old   
Jeje
 
Posts: n/a

Default Re: Multiselect dimension - 10-06-2006 , 05:34 PM



to access an attribute:
<dimension>.<attribute>

to access a user defined hierarchy:
<dimension>.<hierarchy name>

I don't kown what are your attributes and user hierarchy in the cost
division dimension.
but you have to use something like:
extract(axis(1), [Cost Division].[<cost division leaf level
attribute>]).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote

Quote:
hi

I tried like this

extract(axis(1), [Cost Division].(all)).Count

Still getting same error msg. please help me





"Kalyan" wrote:

JeJe

Thanks for reply. I am new to mdx query,
how to i get attribute name. I created dimension through wizard, No where
it
asked attibute, can u tell me how to get attibute name or define to a
dimension.



"Jéjé" wrote:

try:
extract(axis(1), [Cost Division].[my hierarchy]).Count
or

these formulas can produce errors if the user has nothing in rows or if
the
Cost Division dimension is not used in the MDX source query.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:9B9E4A74-2AED-4E02-A439-1DEEAA22D1F5 (AT) microsoft (DOT) com...
I entered formula like this in calculated member box
Cost Division is my dimension name

extract(axis(1), [Cost Division]).Count

Getting error msg.


Unable to update calculated member

Formula - no set holder - when referencing a named <set

why i am getting this error

Thanks
Kalyan




"Jéjé" wrote:

axis(1) return the row set.
This can include multiple dimensions & members.

to count 1 particular dimension only in this set:
extract(axis(1), <Dimension to extract>).Count

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:6B493D16-DEF9-4BB4-82CF-966076D7BD9E (AT) microsoft (DOT) com...
how do i specify dimension with axis(1).count
in my example, dimension name is [country]


"Kalyan" wrote:

Thanks JeJe, I want to create calculated member, how do i use
axis
function
in calculated member, can you give example.

Yesterday I asked about cube processing, I created noncluster
index
on
all
the dimension columns, now it is taking about 10 min, Is this
correct
method,
I tried sp_updatestats and defrag index, finally i created index
on
dimension
column that solved. Thanks for giving startup to think.

Waiting for your reply

thanks
kalyan
"Jeje" wrote:

use the axis function
axis(0) returns columns
axis(1) returns rows

so axis(1).count should return the number of members.

"Kalyan" <Kalyan (AT) discussions (DOT) microsoft.com> wrote in message
news:944A7574-EB78-4AD6-9AB7-1FFA497E571A (AT) microsoft (DOT) com...
Cube browser allow user to multiselect in a dimension, Is
there
anyway to
count how many dimension's value user selected. I am using
AS2000.

for example

I have country dimension

Country

USA
Canada
Mexico
England
Spain
France
Italy
India
Singapore
Malayasia
...
...


In the above dimesnion,
If user select

Selection Result

USA,Canada,Mexico 3
England,Italy 2
India 1
India,Singapore 2

Any help

Thanks
Kalyan













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.