Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

In My situation how to design the schema.xml

$
0
0
Sorry, I have no idea how to design schema.xml base my situation.

I have three dimension table

Account
accountID AccountName
A1 AAA
B1 BBB
C1 CCC

Customer
CustomerID CustomerName
A2 AA2
A3 AA3
A4 AA4
B2 BB2
C2 CC2

Product
ProductID ProductName
A Apple
B Ball
C Cat
D Dog
E Egg

and Fact table
accountID CustomerID Product QTY
A1 A2 A 5
A1 A3 C 3
A1 A4 D 4
B1 B2 C 10
B1 B2 D 20
B1 B2 A 33
C1 C2 D 40

Now I create a cube Composed of the dimensions' ID and fact table
and the data show on the BI is that.

accountID CustomerID Product QTY
A1 A2 A 5
A1 A2 B 0
A1 A2 C 0
A1 A2 D 0
A1 A2 E 0
A1 A3 A 0
A1 A3 B 0
A1 A3 C 2
A1 A3 D 0
A1 A3 E 0
A1 A4 A 0
A1 A4 B 0
A1 A4 C 0
A1 A4 D 4
A1 A4 E 0
A1 B2 A 0
A1 B2 B 0
A1 B2 C 0
A1 B2 D 0
A1 B2 E 0
A1 C2 A 0
A1 C2 B 0
A1 C2 C 0
A1 C2 D 0
A1 C2 E 0
B1 A2 A 0
B1 A2 B 0
B1 A2 C 0
B1 A2 D 0
B1 A2 E 0
B1 A3 A 0
B1 A3 B 0
B1 A3 C 0
B1 A3 D 0
B1 A3 E 0
B1 A4 A 0
B1 A4 B 0
B1 A4 C 0
B1 A4 D 0
B1 A4 E 0
B1 B2 A 0
B1 B2 B 0
B1 B2 C 10
B1 B2 D 20
B1 B2 E 0
B1 C2 A 0
B1 C2 B 0
B1 C2 C 0
B1 C2 D 0
B1 C2 E 0
C1 A2 A 5
C1 A2 B 0
C1 A2 C 0
C1 A2 D 0
C1 A2 E 0
C1 A3 A 0
C1 A3 B 0
C1 A3 C 0
C1 A3 D 40
C1 A3 E 0
C1 A4 A 0
C1 A4 B 0
C1 A4 C 0
C1 A4 D 4
C1 A4 E 0
C1 B2 A 0
C1 B2 B 0
C1 B2 C 0
C1 B2 D 0
C1 B2 E 0
C1 C2 A 0
C1 C2 B 0
C1 C2 C 0
C1 C2 D 0
C1 C2 E 0

but I want the data show like the fact table.

if the value not exists in fact table and the cube not show.

if i describe not clear please leave msg let me know.

Or Please give me some suggestion about design the schema.xml

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>