dbTalk Databases Forums  

How to define unary operator in a regular dimension

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


Discuss How to define unary operator in a regular dimension in the microsoft.public.sqlserver.olap forum.



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

Default How to define unary operator in a regular dimension - 09-28-2005 , 03:05 AM






In parent-child dimensions. I define unary operator column in th
property of dimension attribute(usage = parent). And it run
normally.

But, in a regular dimension. I define unary operator in the propert
of dimension attribute (usage = key). AS will be shut dow
automatically when processing cube.

How to define unary operator in a regular dimension?

PS: My question is focus on SQL Server 2005

thanks


Reply With Quote
  #2  
Old   
SQL McOLAP
 
Posts: n/a

Default RE: How to define unary operator in a regular dimension - 09-30-2005 , 08:26 AM






I'm glad someone else is having this problem. We have some regular
non-parent-child dimensions that have custom rollups and unary operators
defined in their respective dim tables.

The dims will process, eventually, but when going to browse the dim data
(not even included in a cube yet), the Analysis Services service shuts itself
down. When added to a cube, the process runs for a very long time, and
again, the service shuts itself down.

Any input welcome.

Thanks!

- Phil


"ivan" wrote:

Quote:
In parent-child dimensions. I define unary operator column in the
property of dimension attribute(usage = parent). And it runs
normally.

But, in a regular dimension. I define unary operator in the property
of dimension attribute (usage = key). AS will be shut down
automatically when processing cube.

How to define unary operator in a regular dimension?

PS: My question is focus on SQL Server 2005.

thanks,



Reply With Quote
  #3  
Old   
Darren Gosbell
 
Posts: n/a

Default RE: How to define unary operator in a regular dimension - 10-01-2005 , 02:44 AM



Quote:
The dims will process, eventually, but when going to browse the dim data
(not even included in a cube yet), the Analysis Services service shuts itself
down.
As far as I have been able to tell the "Browse dimension" functionality
is a bit of a fake. (sorry MS ) It actually seems to run SQL queries
against the relational source (or maybe some hybrid approach). So I
never really trust the what the dimension browser tells me outside of
the context of a cube.

Can you try running SQL Profiler while browsing to the dimension to see
what (if any) SQL queries are being executed against SQL Server. This
may give you a hint as to what data is coming back to AS to cause it to
trip up.

I had a 10,000 member account table a couple of years ago for a large
client with 6-7 levels that used unary operators without any problems (I
think on SP3)

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell


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

Default re:How to define unary operator in a regular dimension - 10-03-2005 , 03:05 AM



Hello, Gosbell
You say that "I had a 10,000 member account table a couple of year
ago for a large client with 6-7 levels that used unary operator
without any problems (I think on SP3)

Does it work in SQL 2000
I beleive that unary operator is work fine in SQL 2000 no matte
parent-child or non parent-child dimension but SQL 2005 (CTP June)

I try to define unary operator in SQL 2005, parent-child is wor
fine but non parent-child...^^


Reply With Quote
  #5  
Old   
SQL McOLAP
 
Posts: n/a

Default RE: How to define unary operator in a regular dimension - 10-03-2005 , 08:07 AM



Hi Darren -

Forgive me for omitting a major fact, I'm having this problem in Yukon only,
like Ivan. He was better at communicating it than me.

Our parent child dims that are similar in complexity to the ones you mention
are fine in 2000 and Yukon, and our regular dimensions with unary operators
and custom rollups are fine in 2000. It's our regular dims with unary ops
and custom rollups that are failing in Yukon. They'll process, but can't be
viewed. Trying to view them causes the service to stop. Also, when included
in a cube and when trying to process, the process fails because the service
stops then as well.

Has anyone else seen this symptom?

(Darren, thanks again for your attention.)

- Phil


"Darren Gosbell" wrote:

Quote:
The dims will process, eventually, but when going to browse the dim data
(not even included in a cube yet), the Analysis Services service shuts itself
down.

As far as I have been able to tell the "Browse dimension" functionality
is a bit of a fake. (sorry MS ) It actually seems to run SQL queries
against the relational source (or maybe some hybrid approach). So I
never really trust the what the dimension browser tells me outside of
the context of a cube.

Can you try running SQL Profiler while browsing to the dimension to see
what (if any) SQL queries are being executed against SQL Server. This
may give you a hint as to what data is coming back to AS to cause it to
trip up.

I had a 10,000 member account table a couple of years ago for a large
client with 6-7 levels that used unary operators without any problems (I
think on SP3)

--
Regards
Darren Gosbell [MCSD]
dgosbell_at_yahoo_dot_com
Blog: http://www.geekswithblogs.net/darrengosbell


Reply With Quote
  #6  
Old   
Darren Gosbell
 
Posts: n/a

Default RE: How to define unary operator in a regular dimension - 10-03-2005 , 06:37 PM



Quote:
Forgive me for omitting a major fact, I'm having this problem in Yukon only,
like Ivan. He was better at communicating it than me.

Yes - that makes the situation slightly different

If you have access to them you are probably better to post
questions/issues relating to AS2005 in the beta newsgroups.

However, as you have posted here I am assuming that you may not have
access. I did find the post below, which indicates that unary operators
on regular dimensions was a feature that was only added very recently
CTP16 (which I think is the Sep CTP?)

If you are using the September CTP and are still having trouble you can
log an issue with at the MSDN Product Feedback centre at
http://lab.msdn.microsoft.com/produc...k/default.aspx

HTH

--
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell

Quote:
Subject: Re: Unary Operator
From: Marius Dumitru <mariusd (AT) online (DOT) microsoft.com
Newsgroups: microsoft.private.sqlserver2005.analysisservices.o lap

As mentioned in the previous post, this is now supported in Yukon.

However, this functionality was added later in the product cycle, so please
make sure that you're using the CTP 16 build, or wait for the final RTM
bits...

--
Hope this helps

Marius

"iw" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message
news:02ac01c5bf43$9cf6a110$a601280a (AT) phx (DOT) gbl...
Yes. I have defined unary operator in parent-child
dimensions. These dimensions run normally.

I define unary operator in a regular dimension. AS will be
shut down automatically when processing cube.

And I used Upgrade Advisor to analyse my 2000 cube the
other day. Upgrade Advisor indicates "Unary Operators on
non parent-child hierarchies are not supported."

I have no idea if unary operator support non parent-child
dimension...



Reply With Quote
  #7  
Old   
ivan
 
Posts: n/a

Default re:How to define unary operator in a regular dimension - 10-04-2005 , 03:05 AM



Unfortunately, I try to do it on CTP Sept. It's not working fin
still

I try to use "Business Intelligence Wizard" to specify a unar
operator

And there is a description abou
"Specify a unary operator t
replace the default aggregation that is associated with members in
parent-child hierarchy.

And I choose a regular dimension, there is a warning messag
"[b:fb6b573002][color=darkblue:fb6b573002]The wizard cannot find a
attribute in the XX02 dimension whose Usage property is set t
Parent. Before defining a unary operator, first create a parent-chil
hierarchy[/color:fb6b573002][/b:fb6b573002]."
in which "XX02" is a dimension name(regular dimension)

thanks for your suggestion


Reply With Quote
  #8  
Old   
Deepak Puri
 
Posts: n/a

Default re:How to define unary operator in a regular dimension - 10-04-2005 , 03:29 AM



Using Sept. CTP and Adventure Works sample cube, a unary operator on the
Geography dimension GeographyKey attribute worked fine, as follows (I
chose Geography because it is a regular dimension with strong hierarchy
relationships):

1) Added "GeoKeyUnaryOp" Calculated Column to DimGeography table in
Adventure Works DW Data Source View, defined as (note that Birmingham,
AL has a key of 280):
Quote:
case when dbo.DimGeography.GeographyKey = 280
then '-' else '+' end
Quote:
2) For GeographyKey Attribute (of Type Key), defined
UnaryOperatorColumnProperty as "GeoKeyUnaryOp"

3) Updated and reprocessed Adventure Works cube

4) Browsed "ResellerSalesAmount" measure by Geography. Under
USA/Alabama/Birmingham/35203, the amount (about $20K) now appears
negative, so Alabama toral is now only $4K.

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***


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

Default re:How to define unary operator in a regular dimension - 10-06-2005 , 03:05 AM



Hi Deepak
thanks for your sample and steps
I try to do your sample step by step
and I try to do it in my project
All of them are work fine. :

I find that it's work fine if I dirrectly defin
UnaryOperatorColumnProperty
But if I use "Business Intelligence Wizard" to specify a unar
operator. There is still a warning message
"The wizard cannot find an attribute in the XX02 dimension whos
Usage property is set to Parent. Before defining a unary operator
first create a parent-child hierarchy."

thanks


Reply With Quote
  #10  
Old   
Deepak Puri
 
Posts: n/a

Default re:How to define unary operator in a regular dimension - 10-06-2005 , 10:15 AM



Maybe the BI gurus from MS can confirm this, but it sounds like the
Business Intelligence Wizard is only wired to add a unary operator to a
parent-child dim?


- Deepak

Deepak Puri
Microsoft MVP - SQL Server

*** Sent via Developersdex http://www.developersdex.com ***

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.