dbTalk Databases Forums  

cube-sourcetablefilter on a dim-table column

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


Discuss cube-sourcetablefilter on a dim-table column in the microsoft.public.sqlserver.olap forum.



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

Default cube-sourcetablefilter on a dim-table column - 03-16-2005 , 10:24 AM






Hi,

I only want transactions with PROD's that have PRODGROUP
= '1' to update my cube.

DimTable PROD:
PROD, PRODGROUP

FactTable TRANSACTIONS:
....,PROD,...,QTY

I use starschema-tables and "Optimize schema".

/Jerome

Reply With Quote
  #2  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: cube-sourcetablefilter on a dim-table column - 03-16-2005 , 09:07 PM






You can set "Source Table Filter" at Cube Editor. If there are multiple
partitions, you can set filtering by partitions through advanced settings of
partition wizard. There you will be able to set filtering based on just
columns, inner joins between tables or both.

Separately, next is additional information. if you use "Optimize schema",
there are things to be considered usually.

If you need to restrict dimension table rows, in other words, if you depend
on the inner joins, between dimension and fact tables, of the SQL query to
exclude fact table rows that contain the dimension keys and if the
dimensions meet optimization condition, you should not use "Optimize
schema". Because "Optimize schema" removes the joins between dimension and
fact tables. Of course, even in this case, you can reset the joins manually
by modifying "Member Key Column" of the level of the dimension in Cube
Editor.

Ohjoo Kwon.


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

Quote:
Hi,

I only want transactions with PROD's that have PRODGROUP
= '1' to update my cube.

DimTable PROD:
PROD, PRODGROUP

FactTable TRANSACTIONS:
...,PROD,...,QTY

I use starschema-tables and "Optimize schema".

/Jerome



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

Default Re: cube-sourcetablefilter on a dim-table column - 03-17-2005 , 03:28 AM



So if I optimize schema with all dimensions without PROD
dimension in the cube, then add PROD (without optimize
schema) and set the sourcetable filter to what ?

"PROD.PRODGROUP = '1'" ???

/J

Quote:
-----Original Message-----
You can set "Source Table Filter" at Cube Editor. If
there are multiple
partitions, you can set filtering by partitions through
advanced settings of
partition wizard. There you will be able to set
filtering based on just
columns, inner joins between tables or both.

Separately, next is additional information. if you
use "Optimize schema",
there are things to be considered usually.

If you need to restrict dimension table rows, in other
words, if you depend
on the inner joins, between dimension and fact tables,
of the SQL query to
exclude fact table rows that contain the dimension keys
and if the
dimensions meet optimization condition, you should not
use "Optimize
schema". Because "Optimize schema" removes the joins
between dimension and
fact tables. Of course, even in this case, you can reset
the joins manually
by modifying "Member Key Column" of the level of the
dimension in Cube
Editor.

Ohjoo Kwon.


"Jerome" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:061601c52a44$9f53a910$a401280a (AT) phx (DOT) gbl...
Hi,

I only want transactions with PROD's that have
PRODGROUP
= '1' to update my cube.

DimTable PROD:
PROD, PRODGROUP

FactTable TRANSACTIONS:
...,PROD,...,QTY

I use starschema-tables and "Optimize schema".

/Jerome


.


Reply With Quote
  #4  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: cube-sourcetablefilter on a dim-table column - 03-17-2005 , 03:58 AM



The expression rule is "Table"."Column" <operator> Value. For example,
ProdGroup type is numeric.

"Prod"."ProdGroup" = 1

Then the expression is added to where clause.

I recommend you set the filtering expression through partition wizard not
cube editor.

Ohjoo Kwon



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

Quote:
So if I optimize schema with all dimensions without PROD
dimension in the cube, then add PROD (without optimize
schema) and set the sourcetable filter to what ?

"PROD.PRODGROUP = '1'" ???

/J

-----Original Message-----
You can set "Source Table Filter" at Cube Editor. If
there are multiple
partitions, you can set filtering by partitions through
advanced settings of
partition wizard. There you will be able to set
filtering based on just
columns, inner joins between tables or both.

Separately, next is additional information. if you
use "Optimize schema",
there are things to be considered usually.

If you need to restrict dimension table rows, in other
words, if you depend
on the inner joins, between dimension and fact tables,
of the SQL query to
exclude fact table rows that contain the dimension keys
and if the
dimensions meet optimization condition, you should not
use "Optimize
schema". Because "Optimize schema" removes the joins
between dimension and
fact tables. Of course, even in this case, you can reset
the joins manually
by modifying "Member Key Column" of the level of the
dimension in Cube
Editor.

Ohjoo Kwon.


"Jerome" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:061601c52a44$9f53a910$a401280a (AT) phx (DOT) gbl...
Hi,

I only want transactions with PROD's that have
PRODGROUP
= '1' to update my cube.

DimTable PROD:
PROD, PRODGROUP

FactTable TRANSACTIONS:
...,PROD,...,QTY

I use starschema-tables and "Optimize schema".

/Jerome


.




Reply With Quote
  #5  
Old   
jerome
 
Posts: n/a

Default Re: cube-sourcetablefilter on a dim-table column - 03-18-2005 , 01:39 AM



I always only use the partition created by AM. Is it
still better to use partition wizard ? Why ?

/J

Quote:
-----Original Message-----
The expression rule is "Table"."Column" <operator
Value. For example,
ProdGroup type is numeric.

"Prod"."ProdGroup" = 1

Then the expression is added to where clause.

I recommend you set the filtering expression through
partition wizard not
cube editor.

Ohjoo Kwon



"jerome" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:001c01c52ad3$aa56abc0$a501280a (AT) phx (DOT) gbl...
So if I optimize schema with all dimensions without
PROD
dimension in the cube, then add PROD (without optimize
schema) and set the sourcetable filter to what ?

"PROD.PRODGROUP = '1'" ???

/J

-----Original Message-----
You can set "Source Table Filter" at Cube Editor. If
there are multiple
partitions, you can set filtering by partitions
through
advanced settings of
partition wizard. There you will be able to set
filtering based on just
columns, inner joins between tables or both.

Separately, next is additional information. if you
use "Optimize schema",
there are things to be considered usually.

If you need to restrict dimension table rows, in other
words, if you depend
on the inner joins, between dimension and fact tables,
of the SQL query to
exclude fact table rows that contain the dimension
keys
and if the
dimensions meet optimization condition, you should not
use "Optimize
schema". Because "Optimize schema" removes the joins
between dimension and
fact tables. Of course, even in this case, you can
reset
the joins manually
by modifying "Member Key Column" of the level of the
dimension in Cube
Editor.

Ohjoo Kwon.


"Jerome" <anonymous (AT) discussions (DOT) microsoft.com> wrote
in
message
news:061601c52a44$9f53a910$a401280a (AT) phx (DOT) gbl...
Hi,

I only want transactions with PROD's that have
PRODGROUP
= '1' to update my cube.

DimTable PROD:
PROD, PRODGROUP

FactTable TRANSACTIONS:
...,PROD,...,QTY

I use starschema-tables and "Optimize schema".

/Jerome


.



.


Reply With Quote
  #6  
Old   
Ohjoo Kwon
 
Posts: n/a

Default Re: cube-sourcetablefilter on a dim-table column - 03-18-2005 , 05:01 AM



When you add partitions someday, "Source Table Filter" property of the Cube
will become invalid.

Ohjoo Kwon


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

Quote:
I always only use the partition created by AM. Is it
still better to use partition wizard ? Why ?

/J

-----Original Message-----
The expression rule is "Table"."Column" <operator
Value. For example,
ProdGroup type is numeric.

"Prod"."ProdGroup" = 1

Then the expression is added to where clause.

I recommend you set the filtering expression through
partition wizard not
cube editor.

Ohjoo Kwon



"jerome" <anonymous (AT) discussions (DOT) microsoft.com> wrote in
message
news:001c01c52ad3$aa56abc0$a501280a (AT) phx (DOT) gbl...
So if I optimize schema with all dimensions without
PROD
dimension in the cube, then add PROD (without optimize
schema) and set the sourcetable filter to what ?

"PROD.PRODGROUP = '1'" ???

/J

-----Original Message-----
You can set "Source Table Filter" at Cube Editor. If
there are multiple
partitions, you can set filtering by partitions
through
advanced settings of
partition wizard. There you will be able to set
filtering based on just
columns, inner joins between tables or both.

Separately, next is additional information. if you
use "Optimize schema",
there are things to be considered usually.

If you need to restrict dimension table rows, in other
words, if you depend
on the inner joins, between dimension and fact tables,
of the SQL query to
exclude fact table rows that contain the dimension
keys
and if the
dimensions meet optimization condition, you should not
use "Optimize
schema". Because "Optimize schema" removes the joins
between dimension and
fact tables. Of course, even in this case, you can
reset
the joins manually
by modifying "Member Key Column" of the level of the
dimension in Cube
Editor.

Ohjoo Kwon.


"Jerome" <anonymous (AT) discussions (DOT) microsoft.com> wrote
in
message
news:061601c52a44$9f53a910$a401280a (AT) phx (DOT) gbl...
Hi,

I only want transactions with PROD's that have
PRODGROUP
= '1' to update my cube.

DimTable PROD:
PROD, PRODGROUP

FactTable TRANSACTIONS:
...,PROD,...,QTY

I use starschema-tables and "Optimize schema".

/Jerome


.



.




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.