Solved

Analysis Services - Calculations Based on Dimension Value

Posted on 2007-11-15
8
1,268 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
8 Comments
 
LVL 42

Expert Comment

by:Eugene Z
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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
These days, all we hear about hacktivists took down so and so websites and retrieved thousands of user’s data. One of the techniques to get unauthorized access to database is by performing SQL injection. This article is quite lengthy which gives bas…
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.

733 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