dbTalk Databases Forums  

Re: AS2005

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


Discuss Re: AS2005 in the microsoft.public.sqlserver.olap forum.



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

Default Re: AS2005 - 04-02-2006 , 04:47 AM






Set up a fact table for these goals and then create a measure group in
the cube. You can then use a measure as the goal.

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

In article <A470BBC2-3F77-4637-9EB0-1AA0F9136F5C (AT) microsoft (DOT) com>,
AndrMattos (AT) discussions (DOT) microsoft.com says...
Quote:
I need create different goal in my KPI , example:
dimension region

North American: goal 1000
South American: goal 500
Europe: goal 800

Please help me.

Thanks,



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

Default Re: AS2005 - 04-02-2006 , 10:02 PM






The MDX expression for the KPI Goal could be like:

Quote:
Case
when [Region].[Region].CurrentMember
is [Region].[North America]
then 1000
when [Region].[Region].CurrentMember
is [Region].[South America]
then 500
when [Region].[Region].CurrentMember
is [Region].[Europe]
then 800
else 200 end
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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


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

Default Re: AS2005 - 04-03-2006 , 10:02 AM



Hi Mattos,

Could you describe the problem - what is your test, and are you seeing
an error or the wrong value? To facilitate trouble-shooting, you might
follow Mosha's suggestion to define an MDX script calculation which
evaluates to the goal, then set the goal to this calculation:

http://sqljunkies.com/WebLog/mosha/a...005/12/31.aspx
Quote:
...
However, if the expression is a simple reference, such as
[Measures].[Sales], then no hidden calculated measure will be created,
and KPIValue, KPIGoal, KPITrend etc functions will simply return that
measure. Therefore, one can (perhaps even should) create all the
calculations in the MDX Script (where they really belong in the first
place), and resolve all the precedence rules there using power of MDX
Scripts.
...
Quote:

- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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


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

Default Re: AS2005 - 04-03-2006 , 04:46 PM



Mattos,

Unfortunately, I can't figure out how the filters in KPI browser view
work, but you can use an MDX query to confirm whether the KPI Goal is
working as intended. Here's an example from Adventure Works, where the
[Product Gross Profit Margin] KPI goal varies by Product Category:

Quote:
select KPIGoal("Product Gross Profit Margin") on 0,
[Product].[Category].Members on 1
from [Adventure Works]
---------------------------------------------------
Product Gross Profit Margin Goal
All Products 0.12
Accessories 0.4
Bikes 0.12
Clothing 0.2
Components 0.1
Quote:
- Deepak

Deepak Puri
Microsoft MVP - SQL Server

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


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

Default Re: AS2005 - 04-04-2006 , 08:51 AM



It probably depends on the context of the [DIM LABORATORIO] dimension
when you are viewing the KPI information.

The first thing I would suggest is trying Deepak's suggestion of
creating a calculated MDX measure for your target.

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

In article <2C7B43C3-5A85-4DD4-9030-035B167B3B41 (AT) microsoft (DOT) com>,
AndrMattos (AT) discussions (DOT) microsoft.com says...
Quote:
Hi Darren Gosbell,

I created measure with this goal :

Case
when [DIM LABORATORIO].[ESTRUTURA LABORATORIO].CurrentMember
is [DIM LABORATORIO].[ESTRUTURA LABORATORIO].[LABORATORIO].&[MATRIZ -
PATS/PIE SAO PAULO]
then 7

when [DIM LABORATORIO].[ESTRUTURA LABORATORIO].CurrentMember
is [DIM LABORATORIO].[ESTRUTURA LABORATORIO].[LABORATORIO].&[PROCOMP-CURITIBA]
then 10

when [DIM LABORATORIO].[ESTRUTURA LABORATORIO].CurrentMember
is [DIM LABORATORIO].[ESTRUTURA LABORATORIO].[LABORATORIO].&[PROCOMP-BELO
HORIZONTE]
then 9

when [DIM LABORATORIO].[ESTRUTURA LABORATORIO].CurrentMember
is [DIM LABORATORIO].[ESTRUTURA LABORATORIO].[LABORATORIO].&[PROCOMP-BRASILIA]
then 12

else 15

end

When i use this measure in pivottable and work well, but when i use this in
KPI only value i see is 15.

Could you hel me

Thanks,



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.