dbTalk Databases Forums  

Share Formula

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


Discuss Share Formula in the microsoft.public.sqlserver.olap forum.



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

Default Share Formula - 08-01-2006 , 02:14 PM






Hi,
i'm trying to write a share formula, i need some help to do something like
this :

Country Product Line
---------------------------------------------------
United States Accesory 40 % 400 $
Components 25 % 250 $
Mountain 5 % 50 $
Road 15 % 150 $
Touring 15 % 150 $
Total 100 % 1000 $

Country Product Line Reseller
----------------------------------------------------------------
United States Accesory Reseller1 50 % 200 $
Reseller2 30 %
120 $
Reseller3 20 %
80 $
Total 40 %
400 $
Components 25 % 250 $
Mountain 5 %
50 $
Road 15 %
150 $
Touring 15 %
150 $
Total 100 %
1000 $

I must calculate the relative share with the previous selected dimension, is
it possible? i can't found the way. The dimensions are not fixed, would be
others. The only thing i know is i will have present the market on my rows
selections, in this case the country.
Thanks, Mariana.



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

Default Re: Share Formula - 08-01-2006 , 04:01 PM






I write this, this works fine but its too low, someone know how to rewrite
it better ?

Medida.Medida.&[1]/IIF(Producto.Marca.CurrentMember is producto.Marca.[Todos
los Productos],IIF(Exportador.Empresa.CurrentMember is
Exportador.Empresa.[Todos los
Exportadores],IIF(Producto.Variedad.CurrentMember is
Producto.Variedad.[Todos los
Productos],Medida.Medida.&[1],(Producto.Variedad.[Todos los
Productos],Medida.Medida.&[1])),(Exportador.Empresa.[Todos los
Exportadores],Medida.Medida.&[1])),(producto.Marca.[Todos los
Productos],Medida.Medida.&[1]))*100

Thanks, Mariana.

"Mariana" <melelen (AT) hotmail (DOT) com> wrote

Quote:
Hi,
i'm trying to write a share formula, i need some help to do something like
this :

Country Product Line
---------------------------------------------------
United States Accesory 40 % 400 $
Components 25 % 250 $
Mountain 5 % 50 $
Road 15 % 150 $
Touring 15 % 150 $
Total 100 % 1000 $

Country Product Line Reseller
----------------------------------------------------------------
United States Accesory Reseller1 50 % 200 $
Reseller2 30 %
120 $
Reseller3 20 % 80
$
Total 40 %
400 $
Components 25 % 250 $
Mountain 5 % 50 $
Road 15 % 150
$
Touring 15 % 150
$
Total 100 %
1000 $

I must calculate the relative share with the previous selected dimension,
is it possible? i can't found the way. The dimensions are not fixed,
would be others. The only thing i know is i will have present the market
on my rows selections, in this case the country.
Thanks, Mariana.




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.