![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#3
| |||
| |||
|
|
A view can be the fact or dimension source. The view does need to return data to populate the cube or dimension, just as with a table. Just select the view as you would a table from the list of source objects provided by the AS wizard. "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com... Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#4
| |||
| |||
|
|
Here's an interesting twist... Analysis Mgr requires that that fact table (or view) have at least one row. But, you can build cube, delete row (or change WHERE clause in view), re-process cube. Then you have an empty cube which you can use as blank modeling space. tom @ the domain below www.tomchester.net "Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl... A view can be the fact or dimension source. The view does need to return data to populate the cube or dimension, just as with a table. Just select the view as you would a table from the list of source objects provided by the AS wizard. "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com... Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#5
| |||
| |||
|
|
Here's an interesting twist... Analysis Mgr requires that that fact table (or view) have at least one row. But, you can build cube, delete row (or change WHERE clause in view), re-process cube. Then you have an empty cube which you can use as blank modeling space. tom @ the domain below www.tomchester.net "Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl... A view can be the fact or dimension source. The view does need to return data to populate the cube or dimension, just as with a table. Just select the view as you would a table from the list of source objects provided by the AS wizard. "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com... Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#6
| |||
| |||
|
|
Hi Tom -- Thanks but I just don't get it. Every time I attempt to use a view as a fact table it gives me an error message saying, of course, a fact table can't have zero rows. Any other guidance? Much obliged. Pete "Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote Here's an interesting twist... Analysis Mgr requires that that fact table (or view) have at least one row. But, you can build cube, delete row (or change WHERE clause in view), re-process cube. Then you have an empty cube which you can use as blank modeling space. tom @ the domain below www.tomchester.net "Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl... A view can be the fact or dimension source. The view does need to return data to populate the cube or dimension, just as with a table. Just select the view as you would a table from the list of source objects provided by the AS wizard. "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com... Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#7
| |||
| |||
|
|
Analysis Manager won't allow a cube to be built if the fact table (physical or view) has no rows. But if you happen to want an empty cube, you can build it, process it, delete the data, then reprocess. tom @ the domain below www.tomchester.net "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309141528.3b829eaa (AT) posting (DOT) google.com... Hi Tom -- Thanks but I just don't get it. Every time I attempt to use a view as a fact table it gives me an error message saying, of course, a fact table can't have zero rows. Any other guidance? Much obliged. Pete "Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message news:<L5p8b.52$M41.30638 (AT) news (DOT) uswest.net>... Here's an interesting twist... Analysis Mgr requires that that fact table (or view) have at least one row. But, you can build cube, delete row (or change WHERE clause in view), re-process cube. Then you have an empty cube which you can use as blank modeling space. tom @ the domain below www.tomchester.net "Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl... A view can be the fact or dimension source. The view does need to return data to populate the cube or dimension, just as with a table. Just select the view as you would a table from the list of source objects provided by the AS wizard. "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com... Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#8
| |||
| |||
|
|
Actually , you just have to pretend that the fact table is not empty. In the cube editor just set the 'Fact Table Size' property (Advanced tab) manually to 1 (or anothing other than 0). Thomas "Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote Analysis Manager won't allow a cube to be built if the fact table (physical or view) has no rows. But if you happen to want an empty cube, you can build it, process it, delete the data, then reprocess. tom @ the domain below www.tomchester.net "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309141528.3b829eaa (AT) posting (DOT) google.com... Hi Tom -- Thanks but I just don't get it. Every time I attempt to use a view as a fact table it gives me an error message saying, of course, a fact table can't have zero rows. Any other guidance? Much obliged. Pete "Tom Chester" <publicNOSPAM (AT) tomchester (DOT) net> wrote in message news:<L5p8b.52$M41.30638 (AT) news (DOT) uswest.net>... Here's an interesting twist... Analysis Mgr requires that that fact table (or view) have at least one row. But, you can build cube, delete row (or change WHERE clause in view), re-process cube. Then you have an empty cube which you can use as blank modeling space. tom @ the domain below www.tomchester.net "Jim Kaiser" <jkaiser-no-spam-att-henwoodenergy.com> wrote in message news:urL5BHWeDHA.1824 (AT) TK2MSFTNGP10 (DOT) phx.gbl... A view can be the fact or dimension source. The view does need to return data to populate the cube or dimension, just as with a table. Just select the view as you would a table from the list of source objects provided by the AS wizard. "Pete Hohenhaus" <cam_pete (AT) hotmail (DOT) com> wrote in message news:3b5c906d.0309121047.6dd2ca1e (AT) posting (DOT) google.com... Can one, how does one create/build a Cube based on a view or views??? Folks -- I appreciate any info and assistance. Thanks, in advance. Can one, how does one, create a Cube based on a view or views in SQL Server??? If there's nothing in a view, then how would a Cube build? How could one use a view as a fact table if the view shows zero records? |
#9
| |||
| |||
|
|
Actually , you just have to pretend that the fact table is not empty. In the cube editor just set the 'Fact Table Size' property (Advanced tab) manually to 1 (or anothing other than 0). Thomas " |
![]() |
| Thread Tools | |
| Display Modes | |
| |