dbTalk Databases Forums  

Tough OLAP Design Problem

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


Discuss Tough OLAP Design Problem in the microsoft.public.sqlserver.olap forum.



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

Default Tough OLAP Design Problem - 09-11-2006 , 06:16 PM






I have a challenging problem That I'm trying to implement as an olap
solution. I'm running MSAS 2005 and looking for any suggestions or options on
how best to accomplish this task.

I have a fact table that stores percentages called "Fact A". I also have
another fact table that stores activity called "Fact B" I would like to
proivde the ability for an end user to define a percentage range that would
be applied as a filter to the first fact table.

so in the client tool, a user would select 50% and 100% as dimensions. the
results returned are the data in "Fact B" that also meets the criteria of
"Fact A"

Here is some example data to help visualize

Fact A:
User Percentage
-------------------
User1 40%
User2 55%
User3 75%

Fact B

User Minutes
------------------
User1 10 Minutes
User2 20 Minutes
User3 20 Minutes

Given the above scenario(50% - 100%) The results from "Fact B" are:

User2 20 Minutes
User3 20 Minutes

User 1 is excluded because his percentage(40%) does not fall into the
selected range.

I was wondering if this could be implemented using Dimension writeback?

Is there is another approach that would work? I want to avoid having to
write a "Custom" Report.

Any Ideas?





Reply With Quote
  #2  
Old   
Charles Wang[MSFT]
 
Posts: n/a

Default RE: Tough OLAP Design Problem - 09-12-2006 , 05:06 AM






Dear Jason,

This is a quick note to let you know that I'm performing research on this
issue and may need a more time.
I'll give you a reply as soon as possible. If it's convenient for you,
could you please mail me (changliw (AT) microsoft (DOT) com) your mail address so that
I can timely response to you?

Sincerely,
Charles Wang
Microsoft Online Community Support

================================================== ====
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====


Reply With Quote
  #3  
Old   
Jeje
 
Posts: n/a

Default Re: Tough OLAP Design Problem - 09-12-2006 , 06:19 AM



try to use calculations and the new scope feature.

-- only leaf level of the percentage dimension, do nothing at the all level
scope(measures.minutes,
percentagedimension.percentageattribute.percentage attribute.members);
--(or leaves(percentagedimension))
if (measures.minutes / (measures.minutes, percentagedimension.allmember)) <>
percentagedimension.currentmember.membervalue then this =null;
end scope;

make sure that you have setup the value column in the dimension with a value
between 0.0 and 1.0 which is the value to use in the comparison.
I hope this will help you.

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

Quote:
I have a challenging problem That I'm trying to implement as an olap
solution. I'm running MSAS 2005 and looking for any suggestions or options
on
how best to accomplish this task.

I have a fact table that stores percentages called "Fact A". I also have
another fact table that stores activity called "Fact B" I would like to
proivde the ability for an end user to define a percentage range that
would
be applied as a filter to the first fact table.

so in the client tool, a user would select 50% and 100% as dimensions. the
results returned are the data in "Fact B" that also meets the criteria of
"Fact A"

Here is some example data to help visualize

Fact A:
User Percentage
-------------------
User1 40%
User2 55%
User3 75%

Fact B

User Minutes
------------------
User1 10 Minutes
User2 20 Minutes
User3 20 Minutes

Given the above scenario(50% - 100%) The results from "Fact B" are:

User2 20 Minutes
User3 20 Minutes

User 1 is excluded because his percentage(40%) does not fall into the
selected range.

I was wondering if this could be implemented using Dimension writeback?

Is there is another approach that would work? I want to avoid having to
write a "Custom" Report.

Any Ideas?







Reply With Quote
  #4  
Old   
Jason
 
Posts: n/a

Default Re: Tough OLAP Design Problem - 09-12-2006 , 07:51 AM



Thanks for the advice I will try to implement a prototype today and see if
this is going to work.


"Jeje" wrote:

Quote:
try to use calculations and the new scope feature.

-- only leaf level of the percentage dimension, do nothing at the all level
scope(measures.minutes,
percentagedimension.percentageattribute.percentage attribute.members);
--(or leaves(percentagedimension))
if (measures.minutes / (measures.minutes, percentagedimension.allmember))
percentagedimension.currentmember.membervalue then this =null;
end scope;

make sure that you have setup the value column in the dimension with a value
between 0.0 and 1.0 which is the value to use in the comparison.
I hope this will help you.

"Jason" <Jason (AT) discussions (DOT) microsoft.com> wrote in message
news:AA5712FC-39D3-4BD8-928A-5851F6ACDF11 (AT) microsoft (DOT) com...
I have a challenging problem That I'm trying to implement as an olap
solution. I'm running MSAS 2005 and looking for any suggestions or options
on
how best to accomplish this task.

I have a fact table that stores percentages called "Fact A". I also have
another fact table that stores activity called "Fact B" I would like to
proivde the ability for an end user to define a percentage range that
would
be applied as a filter to the first fact table.

so in the client tool, a user would select 50% and 100% as dimensions. the
results returned are the data in "Fact B" that also meets the criteria of
"Fact A"

Here is some example data to help visualize

Fact A:
User Percentage
-------------------
User1 40%
User2 55%
User3 75%

Fact B

User Minutes
------------------
User1 10 Minutes
User2 20 Minutes
User3 20 Minutes

Given the above scenario(50% - 100%) The results from "Fact B" are:

User2 20 Minutes
User3 20 Minutes

User 1 is excluded because his percentage(40%) does not fall into the
selected range.

I was wondering if this could be implemented using Dimension writeback?

Is there is another approach that would work? I want to avoid having to
write a "Custom" Report.

Any Ideas?








Reply With Quote
  #5  
Old   
Marco Russo
 
Posts: n/a

Default Re: Tough OLAP Design Problem - 09-13-2006 , 02:49 AM



I suggest you to consider also a many-to-many relationship design.
It could be not so intuitive, but I already used it in similar
scenarios.
I am finishing a paper I hope to publish very soon about the
many-to-many relationships design. Let's contact me (through the
Contact link on my blog) if you are interested in a preview (I am in
the reviewing phase).

Marco Russo
http://www.sqljunkies.com/weblog/sqlbi
http://www.sqlbi.eu

Jason wrote:
Quote:
Thanks for the advice I will try to implement a prototype today and see if
this is going to work.


"Jeje" wrote:

try to use calculations and the new scope feature.

-- only leaf level of the percentage dimension, do nothing at the all level
scope(measures.minutes,
percentagedimension.percentageattribute.percentage attribute.members);
--(or leaves(percentagedimension))
if (measures.minutes / (measures.minutes, percentagedimension.allmember))
percentagedimension.currentmember.membervalue then this =null;
end scope;

make sure that you have setup the value column in the dimension with a value
between 0.0 and 1.0 which is the value to use in the comparison.
I hope this will help you.

"Jason" <Jason (AT) discussions (DOT) microsoft.com> wrote in message
news:AA5712FC-39D3-4BD8-928A-5851F6ACDF11 (AT) microsoft (DOT) com...
I have a challenging problem That I'm trying to implement as an olap
solution. I'm running MSAS 2005 and looking for any suggestions or options
on
how best to accomplish this task.

I have a fact table that stores percentages called "Fact A". I also have
another fact table that stores activity called "Fact B" I would like to
proivde the ability for an end user to define a percentage range that
would
be applied as a filter to the first fact table.

so in the client tool, a user would select 50% and 100% as dimensions. the
results returned are the data in "Fact B" that also meets the criteria of
"Fact A"

Here is some example data to help visualize

Fact A:
User Percentage
-------------------
User1 40%
User2 55%
User3 75%

Fact B

User Minutes
------------------
User1 10 Minutes
User2 20 Minutes
User3 20 Minutes

Given the above scenario(50% - 100%) The results from "Fact B" are:

User2 20 Minutes
User3 20 Minutes

User 1 is excluded because his percentage(40%) does not fall into the
selected range.

I was wondering if this could be implemented using Dimension writeback?

Is there is another approach that would work? I want to avoid having to
write a "Custom" Report.

Any Ideas?









Reply With Quote
  #6  
Old   
Charles Wang[MSFT]
 
Posts: n/a

Default RE: Tough OLAP Design Problem - 09-13-2006 , 07:39 AM



Dear Jason,
Thanks for your email.

Your requirement is not related with Dimension Writeback.
Essentially, my idea is the same as Willgart now, using a calculation and
scope.
If this issue persists or if you have any other special requirement, please
feel free to let me know.
I'm very glad for further research.

Sincerely,
Charles Wang
Microsoft Online Community Support


Reply With Quote
  #7  
Old   
Charles Wang[MSFT]
 
Posts: n/a

Default Re: Tough OLAP Design Problem - 09-17-2006 , 08:28 AM



Hi,

I am interested in this issue. Would you mind letting me know the result of
the suggestions? If you need further assistance, feel free to let me know.
I will be more than happy to be of assistance.

Have a great day!

Charles Wang
Microsoft Online Community Support

================================================== ====
When responding to posts, please "Reply to Group" via
your newsreader so that others may learn and benefit
from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
================================================== ====


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.