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: 
vvvvvvvvvv
Creator
Creator

set variable from column value

Table:

A B

A1 B1

A2 B2

A3 B3

How can I assign column B value to a variable if the corresponding columnA value equal 'A1'.
There are some analysis can get the number of count count({<A='A1'> B} 
But I need is not agg count. I need the whole value......

Labels (1)
1 Solution

Accepted Solutions
Taoufiq_Zarra

Maye be :

=Only({<A={'A1'}>} B)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉

View solution in original post

3 Replies
Taoufiq_Zarra

what is the expected output from this table ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
vvvvvvvvvv
Creator
Creator
Author

Table:

A B

A1 B1

A2 B2

A3 B3

raw data is as above

I want is a value of columnB when columnA equal to 'A1'

Taoufiq_Zarra

Maye be :

=Only({<A={'A1'}>} B)
Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉