dbTalk Databases Forums  

Non-aggregation using MDX

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


Discuss Non-aggregation using MDX in the microsoft.public.sqlserver.olap forum.



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

Default Non-aggregation using MDX - 06-02-2005 , 01:15 PM






Hello friends,
I am new to DW/BI and MDX tools, so respond accordigly.
Along with other dimensions and measures, I also get unit price of an item
in the flat-file from another application.

Here is the example of my dimensions and measures:
Dimensions:
Product Group with 1 level as SKU
Produt Line with 1 level as SKU
Region with 1 level as Customers
Business Unit with no levels

Measures:
Units Sold
Sales Dollars (Units Sold * Unit Price @ point in time)
Avg Unit Price (Sales Dollars / Units Sold)
Current Unit Price (may not be same as Avg Unit Price, hence I get it in the
file)

* I have defined 'Avg Unit Price' as calculated measure and it works great.
* But I am not sure how I can handle 'Current Unit Price', because there is
no calculation involved. At the same time it gets aggregated, which I don't
it to.
* Another question is - 'How can I make sure that Unit Price is visible only
when I am at SKU level and for all other dimensions and its level below, it
is NULL?

NOTE: Do you think, I will have to use MDX scipts? If yes, what will be the
syntax?

Any help on this will be appreciated.

Thanks,
-Umesh

Reply With Quote
  #2  
Old   
Dave Wickert [MSFT]
 
Posts: n/a

Default Re: Non-aggregation using MDX - 06-02-2005 , 06:59 PM






Use a calculated measure with an IIF statement which returns the value of
the measure if and only if the current level of the Product dimension is at
the SKU level. Set the originial measure as invisible so end-users only see
the calcualted measure.
--
Dave Wickert [MSFT]
dwickert (AT) online (DOT) microsoft.com
Program Manager
BI SystemsTeam
SQL BI Product Unit (Analysis Services)
--
This posting is provided "AS IS" with no warranties, and confers no rights.


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

Quote:
Hello friends,
I am new to DW/BI and MDX tools, so respond accordigly.
Along with other dimensions and measures, I also get unit price of an item
in the flat-file from another application.

Here is the example of my dimensions and measures:
Dimensions:
Product Group with 1 level as SKU
Produt Line with 1 level as SKU
Region with 1 level as Customers
Business Unit with no levels

Measures:
Units Sold
Sales Dollars (Units Sold * Unit Price @ point in time)
Avg Unit Price (Sales Dollars / Units Sold)
Current Unit Price (may not be same as Avg Unit Price, hence I get it in
the
file)

* I have defined 'Avg Unit Price' as calculated measure and it works
great.
* But I am not sure how I can handle 'Current Unit Price', because there
is
no calculation involved. At the same time it gets aggregated, which I
don't
it to.
* Another question is - 'How can I make sure that Unit Price is visible
only
when I am at SKU level and for all other dimensions and its level below,
it
is NULL?

NOTE: Do you think, I will have to use MDX scipts? If yes, what will be
the
syntax?

Any help on this will be appreciated.

Thanks,
-Umesh



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.