Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get specific value from table by a field name

Hello ,

I have this tables in my project:

Main_Table:

[Part Family Name][Child1][Child2][Child3][Type][Type #]
AA1111AA1AA12345AA6548M11
BB2355BB98744BB65432BB6581111M12
CC24CC55555CC874654CC988877M21
DD235488DD88452DD46888D2M22

More_Details_Table:

[Part Name_A][Type]Some other more columns...
AA1M1...
AA12345M1...
AA6548
M1...
BB98744M1...
BB65432M1...
BB6581111M1...
CC55555
M2...
CC874654M2...
.........

Balance_Table:

[Part Name_A]Balance
AA1200
AA1234511
AA6548100
BB987448
BB6543281
BB658111182
CC5555583
CC87465484
......

* The Main_Table connected to More_Details_Table by the Type field (key).

* The More_Details_Table connected to Balance_Table by the [Part Name_A] field (key).

I created some straight table with:

1 Dimension: [Type], [Type #]

3 Expressions

* My selection is on the [Type] field, for example I selected and filtered the Types and show only M1 Type:

The Straight table now looks like this:

[Type][Type #]First LevelSecond LevelThird Level
M11
M12

On the expressions I'm trying to display this content:

On each cell I want the associated Child, for example on First Level column:

[Type][Type #]First LevelSecond LevelThird Level
M11AA1
M12BB98744

Additionally, I need to add a second row on each cell that contain the balance that associated to the specific Child name, for example:

[Type][Type #]First LevelSecond LevelThird Level
M11

AA1

200

M12

BB98744

8

I tried to write something like:

=[Child1] & Chr(13) &

only({$<[Part Name_A] = p([Child1]) >} [Balance])

but got only the Child name (AA1 on the first cell and BB98744 on the second)...

Also I tried to use FieldValue function but the position of each value changed when I have lots of Types...

please help me with this...

This is the final table I need to get (after selected and filtered the Type field to 'M1' value):

[Type][Type #]First LevelSecond LevelThird Level
M11

AA1

200

AA12345

11

AA6548

100

M12

BB98744

8

BB65432

81

BB6581111

82

Many Thanks for your support,

Itsik

10 Replies
Anonymous
Not applicable
Author

You are welcome Itsik, I will be waiting for new data then.

Maybe you could send me just a little records, where the formula is not working.

Regards