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

Announcements
Share your agentic AI experience, learn from others, and earn a new badge: Put Agentic AI to Work
cancel
Showing results for 
Search instead for 
Did you mean: 
lisab80
Contributor III
Contributor III

Looping through a set of records by button press

Hi Everyone

I would really love some help in something that I am trying to develop in my qliksense app.

I have attached some sample data. There are 3 different person ID's and each person has filled in two surveys (1 and 2).  Each question 1-4 has a score.  Example person ID 1234646 has answered two surveys with a score of 4 for Q1 in survey 1 and then 3 for Q1 in survey 2.

What I would like to do is take all the distinct PersonID's within my dataset and then when the app is loaded have it open on the first PersonID in the dataset.  I would like two buttons that will allow me when pressed to go to next PersonID in the list or back to the previous PersonID in the list.  I would like the next record button to be enabled until the last record in the list is reached.

For each record that it displayed on the screen I want to be able to show the scores on charts.  This bit I have done by hard coding in an example PersonID so I am thinking that when the button is pressed the value of the PersonID will be passed to a variable which will then be read by the charts and will display accordingly.

The area that I am struggling with is getting the unique PersonID and then looping through each record on a button press.   Any help greatly appreciated.

2 Solutions

Accepted Solutions
Vegar
MVP
MVP

I think what you're looking for might be the semantic load feature. You could look at Henric Cronström's blog post from 2023 for confirmation an inspiration. 

https://qhic.se/2023/04/12/semantic-links/

View solution in original post

rubenmarin
MVP
MVP

Hi, there could be different solutions for this, sketch of how it could work attached.

View solution in original post

4 Replies
Vegar
MVP
MVP

I think what you're looking for might be the semantic load feature. You could look at Henric Cronström's blog post from 2023 for confirmation an inspiration. 

https://qhic.se/2023/04/12/semantic-links/

rubenmarin
MVP
MVP

Hi, there could be different solutions for this, sketch of how it could work attached.

lisab80
Contributor III
Contributor III
Author

Thanks very much for the reply this works perfect.  very helpful

lisab80
Contributor III
Contributor III
Author

This is a very interesting post thanks very much for the reply