powered by simpleCommunicator - 2.0.60     © 2026 Programmizd 02
Целевая тема:
Создать новую тему:
Автор:
Закрыть
Цитировать
Форумы / OLAP и DWH [игнор отключен] [закрыт для гостей] / Parent-Child Dimension Problem, NULL values in the fact table.
2 сообщений из 2, страница 1 из 1
Parent-Child Dimension Problem, NULL values in the fact table.
    #32726314
McLaud
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
Вопросы по кубам
1. Parent –Child dimension error.
Esti tablica kotoraea soderjit Parent-Child Relationship. Naprimer:
Create table Profile
(
profile_id int not null,
parent_id int null,
profile_name varchar(50)
)
Rows:
1,null, Root
2,1,Companies
3,2,Ford
4,2,BMW

Esti drugaea tablica: MediaType – soderjit toliko media_type and media_name
Rows
1, TV
2, Radio
3, Press


Esti fact table. Naprimer:
Create table Article
(
article_id int not null,
profile_id not null,
media_type int not null,
size int not null,
)

Rows:
1,1,1,10
2,2,1,19
3,3,1,25


Delaiu Parent-Child Dimension dlea tablici Profile. Vse ok
Delaiu Star Dimension na tablicu MediaType.
Delaiu cube na table Articles. Measures: article_id, size. Dimension: MediaType and Profile.

Kogda delaiu process CUBE daet sleduiusiu osibku :
A member with key ’1’ was found in the fact table but not was found in the sets of the leaf member in the dimension Profile.
To esti ne otrabativaet link na Root v tablice Profile.
CTO DELATI ?


2. Problema s NULL values in the fact table.
Naprimer, dlea prevedusego primera, dopustim cto fact table imeet sledusie stroki:
1, 1, null, 10
2, 2, null, 19
3, 3, 1, 25.

V takom slucae u menea finalino budet toliko 1 stroka v CUBE. Napriper esli zahocu posmotreti SIZE dlea vseh profiles uviju toliko profile 3 i size=25 (hotea vse danie dlea profile 1,2 toje esti )

Kak resiti problemu s NULL values v fact table ?
...
Рейтинг: 0 / 0
Parent-Child Dimension Problem, NULL values in the fact table.
    #32726702
олапист
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
Гость
1. выставлять в измерении свойство Members With Data = Non-leaf data hidden
2. заводить в измерении служебный элемент например ID=0 Name ='Не указано' и в таблице фактов ссылаться на него
...
Рейтинг: 0 / 0
2 сообщений из 2, страница 1 из 1
Форумы / OLAP и DWH [игнор отключен] [закрыт для гостей] / Parent-Child Dimension Problem, NULL values in the fact table.
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]