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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
qlikwiz123
Creator III
Creator III

Show specific row-cell in a text box

I have a table as shown below.

Theme # Theme Summary
Theme 1  Customer  ABC
Theme 2 Service ABC2
Theme 3 Shipping XYZ
Theme 4 Tech DFW
Theme 5 Policy JFK

 

How do I show specific cell value in a text box? 

For example, how do I show 3rd value (Shipping) under 'Theme' in a text box? Similarly, if I only want to show 4th value under Summary in a text box (DFW)

Labels (1)
1 Solution

Accepted Solutions
Kushal_Chawda

@qlikwiz123  use FieldValue function. see the details here

=FieldValue ('Theme',3) -- 3rd value from Theme

=FieldValue ('Summary',4) -- 4th value from Summary

View solution in original post

7 Replies
David_Friend
Support
Support

@qlikwiz123 can you illustrate what you desire your outcome to be?

Kushal_Chawda

@qlikwiz123  use FieldValue function. see the details here

=FieldValue ('Theme',3) -- 3rd value from Theme

=FieldValue ('Summary',4) -- 4th value from Summary

seanbruton

Kudos nice solution!!

qlikwiz123
Creator III
Creator III
Author

Hi @Kushal_Chawda  Thank you! This works great. But I see a small issue. When the same value is repeating in a specific column more than once, this formula isn't working.

For example,

 FieldValue ('Summary',4) -- 4th value from Summary , which is 'DFW'. If the 6th value from Summary is also 'DFW', and I use FieldValue ('Summary',6), it comes up empty. Any solution to fix this? Thanks in advance!

Kushal_Chawda

@qlikwiz123  FieldValue always looks at distinct values of that field. If you want specific rows from data, there is no easy front end solution. You may need to create variables in script to load specific values at specific position

 

TableName:
Load * Inline [
Summary
ABC
ABC
ABC
XYZ
XYZ ];

let vSummary_1st_value = Peek('Summary',0,'TableName');
let vSummary_3rd_value = Peek('Summary',2,'TableName');

 

 

Screenshot 2024-10-21 at 16.22.01.png

 

Kushal_Chawda

@qlikwiz123  This is front end solution. But this solution works only when you have primary key already present in your data

// 4th value
=Only({<Primary_Key={"$(=Aggr(If(RowNo(TOTAL) = 4, Primary_Key), Primary_Key))"}>} Summary)

//6th value
=Only({<Primary_Key={"$(=Aggr(If(RowNo(TOTAL) = 6, Primary_Key), Primary_Key))"}>} Summary)
qlikwiz123
Creator III
Creator III
Author

Great! Will look into these. Thank you!