dbTalk Databases Forums  

dimesion restriction help

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


Discuss dimesion restriction help in the microsoft.public.sqlserver.olap forum.



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

Default dimesion restriction help - 12-01-2003 , 06:14 PM






I have a fact table with a user id and a report id, date/time, etc.

i have a user table with the userid, name, etc.

i have a report table with the reportid, userid, and title. (users have
many reports, and dont share reports with other users).

i want to see what reports were created over time.

so ive made the cube that has the reportid as the measue.

it has the report time, the userinfo, and the pageinfo as dimensions.

the problem is it doesnt restrict the report dimension to the current user
id.

so you end up with every single report matched to the user, where 90% of
them are blank values since they dont belong to that user.

Still new at this stuff, hopefully im just overlooking something simple.

Thanks.




Reply With Quote
  #2  
Old   
Lutz Morrien
 
Posts: n/a

Default dimesion restriction help - 12-02-2003 , 01:55 AM






Hi,
if one user creates n reports and a report can only
belong to one user, you could consider creating one
single dimension containing users and reports like:

Report_Id | report | user

and create a single dimension off this.

HTH lutz Morrien
Quote:
-----Original Message-----
I have a fact table with a user id and a report id,
date/time, etc.

i have a user table with the userid, name, etc.

i have a report table with the reportid, userid, and
title. (users have
many reports, and dont share reports with other users).

i want to see what reports were created over time.

so ive made the cube that has the reportid as the measue.

it has the report time, the userinfo, and the pageinfo
as dimensions.

the problem is it doesnt restrict the report dimension
to the current user
id.

so you end up with every single report matched to the
user, where 90% of
them are blank values since they dont belong to that
user.

Still new at this stuff, hopefully im just overlooking
something simple.

Thanks.



.


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

Default Re: dimesion restriction help - 12-02-2003 , 10:19 AM



what i found yesterday was the NON EMPTY keyword while using an mdx query.
It works great, only pulling the data thats really needed.

My new concern is how the cube builds.

Users will never share reports. If the cube builds every combination, then
99% of the cube would be blank.

It sounds like thats what you are suggesting. Creating a dimension that
holds the report and the user.

Does that mean create a dimension with 2 levels? userid then reportid, or
reportid then userid?

I think when i tried that i was given a warning about a child having less
values than the parent...




"Lutz Morrien" <Lutz.morrien (AT) ocb (DOT) com.nonotthisbit> wrote

Quote:
Hi,
if one user creates n reports and a report can only
belong to one user, you could consider creating one
single dimension containing users and reports like:

Report_Id | report | user

and create a single dimension off this.

HTH lutz Morrien
-----Original Message-----
I have a fact table with a user id and a report id,
date/time, etc.

i have a user table with the userid, name, etc.

i have a report table with the reportid, userid, and
title. (users have
many reports, and dont share reports with other users).

i want to see what reports were created over time.

so ive made the cube that has the reportid as the measue.

it has the report time, the userinfo, and the pageinfo
as dimensions.

the problem is it doesnt restrict the report dimension
to the current user
id.

so you end up with every single report matched to the
user, where 90% of
them are blank values since they dont belong to that
user.

Still new at this stuff, hopefully im just overlooking
something simple.

Thanks.



.




Reply With Quote
  #4  
Old   
Lutz Morrien
 
Posts: n/a

Default Re: dimesion restriction help - 12-03-2003 , 01:37 AM



Since the relation between user and report is 1:n, User
would be top level and report would be below that level,
I guess.

That would make the nonempty obsolete.

HTH, Lutz Morrien

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.