Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
adiarnon
Creator III
Creator III

PROBLEM WITH HIERARCHY

i have a hierarchy with weight field-

the account dimention (hierarcy) looks like-

ACCOUNTACCOUNT parent

weight

X1X2

my fact table-

YEARMONTHACCOUNT parent

AMOUNT

201512X110

the amount of X (PARENT) should be 20 (10*2)

the weight-

the number i need to multiply the amount in the fact if I WANT TO GET THE VALUE OF THE PARENT

to built the account dimention im using the hierarchy and hierarchybelongto

how can i do this logic?

tnx, adi

6 Replies
Gysbert_Wassenaar

Please post a small qlikview document that illustrates the problem.


talk is cheap, supply exceeds demand
adiarnon
Creator III
Creator III
Author

ATTACH

adiarnon
Creator III
Creator III
Author

?

Gysbert_Wassenaar

Can you tell me how that document illustrates what you want? An example table with the result values you expect would help.


talk is cheap, supply exceeds demand
adiarnon
Creator III
Creator III
Author

tnx for tring to help

i will try to explain

i have my acount dimension-

ELEMENTPARENTWEIGHT
A1
BA-1
CA1
DC1
EC-1

MY FACT

ACOUNTVALUE
B3
C2
D5
E6

WHEN I NEED THE VALUE FOR C-(D AND E HIS SONS)


SUM(VALUE (E))* WEIGHT (OF THE CONNECTION BETWEEN E+C)+

SUM(VALUE (D))* WEIGHT (OF THE CONNECTION BETWEEN D+C)+

SUM(VALUE (C))

=

6*(-1)+

5*1 +

2


=1

THATS THE CALCULATION THAT I NEED

I DON KNOW HOW TO MAKE IT WORK?!

HOPE ITS CLEAR NOW

ADI


adiarnon
Creator III
Creator III
Author