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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Number of rows in straight table

Hi everyone,

The scenario is this. The back end data in total has 20 columns. In the front end interface, I have a straight table which has 6 fixed columns. There is another list box table which has all the other columns (14).  A user is given an option to choose one or more than one of the 14 fields to get them in the straight table.

The question is this: Can i calculate the total # of rows which the straight table displays based on the selections the user makes? Please note that the # of columns shown in straight table can be anywhere from 6 to 20 dependin on how many fields the user selects from list box? NO MACROS CAN BE USED IN THIS CASE. Please , please suggest a solution without macros.

Thanks

Prem

4 Replies
Not applicable
Author

Instead of Macros you can use the load script to get the required result.

If you add a Field [NrOfRows] to your script and set the value of this field to 1.

Now you'll be able to count the number of Rows using Set Analysis:

Sum({$} [NrOfRows])

Not applicable
Author

Try this function: NoOfRows( )

Not applicable
Author

Could you please explain in more detail? Am very new to scripting

jonathandienst
Partner - Champion III
Partner - Champion III

Prem

The previous postings apply to counting rows in the back end, which, if I understand you correctly, is not what you require. What you want is moderately complicated. I could create a sample model to demonstrate this, but it might be easier for you if you post your model loaded with some sample data and let me or others attempt what you want in this sample. To post a file, click on the "Use advanced editor" button on the top right of the reply box.

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein