Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
c_gilbert
Creator II
Creator II

Referencing another row in a table

Please can anyone help, we currently have a straight table with the 'Ward' as the dimension, and results and RAG ratings as the expressions.

For some results, the wards have joint data, but we don't want to duplicate the data at the source, we just want to base the RAG rating of one ward on another ward.

For example, here is a very simple representation of what we have now. At the moment Ward1b is showing red as there is no data, but we want it to show green, as Ward1a is green.

WardResultRAG rating
Ward1a90%Green
Ward1b-Red

And this is what we want to get to:

WardResultRAG rating
Ward1a90%Green
Ward1bJoint WardGreen

Any help would be much appreciated

16 Replies
jvishnuram
Partner - Creator III
Partner - Creator III

Then you need to code the same in the script itself.

c_gilbert
Creator II
Creator II
Author

How? in the real document the data is coming from SQL tables which are updated each day.

Not applicable

I reckon you can't do much unless your data are strictly ordered or Ward IDs are linked together

regards

Chris

Not applicable

Hey

can you please check the attachment.

Thanks

Angad

c_gilbert
Creator II
Creator II
Author

Same as previous reply - doesnt work when re-ordered.

Not applicable

Then you have to use the same logic in script itself. using peek/previous functions. since we are using above() function which is chart level, and any change in sorting would effect it.

c_gilbert
Creator II
Creator II
Author

I'm not sure how this would work, as all our data is at record level, and is loaded from qvd files.