Solved

Analysis Services - Calculations Based on Dimension Value

Posted on 2007-11-15
8
1,266 Views
Last Modified: 2013-11-16
Hello:

I've trying to create a calculation based on a dimension.  Basically, I have a "Type of Goal" which is text that could display like the following:

Sales Goal
Sales Volume
Pending Sales
Pending Volume

My dimensions involve time, geographic location, etc...My measures involve dealing with SUMs and COUNTs based on Pricing and Counts of Records.  I'm looking to create a calculation that calculates differently based on the Type of Goal as listed above with 4 examples.  Taking "Sales Goal" for example, this would change to calculate the number of records based on certain variables such as the Sale Date falling within the Time frame being reported on within the CUBE (i.e.: Quarter, Year, Month, etc...).  The "Sales Volume" for example, this would change to calculate the sum of the Sales Price based on the status of the deal being Sold with the Sale Date falling within the Time frame being reported on within the CUBE (i.e.: Quarter, Year, Month, etc...).

Is it possible to setup a calculation to change based on the "Type of Goal"?  If so, could anyone provide an example of how to do this?  Once I get the grasp of setting this up then we'll be good to go.  I'm somewhat new to calculations within CUBEs so be gentle, :P.

Anyways, any ideas/examples on this would be fantastic!
0
Comment
Question by:sdswiger
  • 3
  • 2
8 Comments
 
LVL 42

Expert Comment

by:EugeneZ
ID: 20308145
0
 
LVL 1

Author Comment

by:sdswiger
ID: 20313279
Thanks for the response EugeneZ

Regarding the examples, Report Builder is not the direction I'm looking towards.  This is a CUBE that basically will become an interactive Score Card for the business.  Let me provide a bit more information.

The row dimensions: (descriptions in parenthesis)
Sales Goal (count of records based on the status of the deal as being either Sold, Pending, etc...)
Sales Volume (sum of the sales price based on those deals with a status of Sold, Pending, etc...)
Pending Sales (count of records based on the status of the deal being Pending)
Pending Volume (sum of the sales price based on those deals with a status of Pending)

Other row dimensions will be present which may deal with geographic location, possibly broken down further into detailed locations, etc...

The column dimensions would be time and the goals for each row dimension based on what the user is interacting with.  We have goals that are broken down to the type of goal (i.e.: Pending Sales, Pending Volume, Sales Goal, Sales Volume, etc...) and are even broken down to the most detailed geopgrahic location along with time aspects.  This would be a complete interactive Score Card CUBE that our financial analysts would be able to analyze profitability, etc...in order to help build the company, etc....  Hopefully I've provided more information.

The goals table that I discussed above (the dimension table) contains the goal which would be the standard sum of the values within the table and require no special calculations to be setup.  This would be a simple SUM of the values.  Where the trick comes into play is changing how items are calculated based on the row dimension that deals with the "Type of Goal", which may be Sales Goal, Sales Volume, Pending Sales, Pending Volume, etc...The calculation should change what it's calculating and how based on this.  This is what I'm trying to conquer and solve.  The CUBE would be available online through Reporting Services as an Excel file, provided with interactivity through a Pivot Table drag-drop style, CUBEs :)).

Anyways, hope this helps further.

Any help from anyone would be greatly appreciated!  :))
0
 
LVL 1

Author Comment

by:sdswiger
ID: 20313291
Oh, forgot to add in that there may be other variables which determine the final value displayed (the measure) within the custom calculation and may be items such as, "Did the Sale Date fall within the time frame along with the status being Sold, Pending, etc...?", questions like these would be built into the custom calculation and change based on the "Type of Goal" being displayed within the row dimension.

Hopefully I've made some sense here, :P.
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 4

Expert Comment

by:VRGultom
ID: 20326143
Hi,

I think what do you want is posible. It's depend on your dimension and cube structure. To load data to your cube based on your requirement you can do a bit programming. just put your formula as per your requirement. You can use .net, vb, etc, which support OLAP. And you can use mdx query to retrieve data you want to see. Put data in the cube is depend on the formula you put in the programming script.

Regards
Veronika
0
 
LVL 1

Author Comment

by:sdswiger
ID: 20327194
Hi Veronika and thanks for responding.

I figured it would be an MDX script (custom calculation) but am unsure how to even come close to solving the problem.  I know .NET, VB, etc...but not MDX Scripting, it's a bit new to me.  Any examples or anything would be great.
0
 
LVL 4

Accepted Solution

by:
VRGultom earned 500 total points
ID: 20332553
MDX query is like sql query. The difference is sql query run for query to database (2 dimention) and mdx query is run for query to OLAB cube(Multi dimensions).
Using mdx query you can manipulate the data in cube as per your requirement.

Here is the link for more clear abou mdx query:
http://technet.microsoft.com/en-us/library/ms145514.aspx

from .NET, VB  etc, you need a component to connect to the OLAP and you can access the OLAP data and create the output you want.

Regards
Veronika
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Healthcare organizations in the United States must adhere to the guidance of both the HIPAA (Health Insurance Portability and Accountability Act) and HITECH (Health Information Technology for Economic and Clinical Health Act) for securing and protec…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Viewers will learn how to use the Hootsuite Dashboard.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question