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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
ashishp
Creator
Creator

Limit data to 10000 rows in straight table

Hi There 

We want to show always 10,000 rows in straight table without using any extension. 


Can it be possible? 

I have used following in the Data Handling settings on Staight table , 

 

1. Count(filedname)<=10000

2. Rowno(TOTAL)<=10000 

Nothing is working , can you please suggest? 

 

Thanks in advance. 

 

 

 

 

Labels (4)
18 Replies
Timario
Contributor III
Contributor III

Hi. try write next expression in new measure. if(RowNo(total) <= 10000, measure)

And last action in properties of table 

Add-Ons -> Data processing (or similar, 'Data handling'? I am not using the english version) -> Disable 'Show NULL values'.

I try this for 10 values.

ashishp
Creator
Creator
Author

@Timario  Thanks for your suggestion. I have Show Nulls disabled.  

I found the issue. when we use below expression, only first 10000 records are show in the table.

Count({<NumberOfRows={"<=10000"}>}YourMeasure)

 

However requirment is like this.

Show 10000 records for selected region from filter. We have 6 regions , if user selects region NA then 10,000 records for that region should show. 

deepanshuSh
Creator III
Creator III

Use it like this, Create a variable vS_Field= GetfieldSelections(Field name) and then put it in set expression.

Count({<NumberOfRows={"<=10000"}, Yourregionfield={'$(vS_field)'}>}YourMeasure) this would filter out based on the region which you select. The selected field gets fed into the variable and that is called in the set expression. 

Trial and error is the key to get unexpected results.
ashishp
Creator
Creator
Author

I tried all possibilities , still not working, Please find attached QVF file for reference. 

Or
MVP
MVP

Using the latest Qlik Sense version, you could probably achieve this with a script that loops through the values and deletes anything after the 10000th iteration...

A use case for the new chart-level scripts!

ashishp
Creator
Creator
Author

Thanks @Or  I am looking to achieve this front end not in the script.  

Or
MVP
MVP

Chart-level scripting is, by definition, chart-level, so it's on the front end. It's new in QS August 2022, and poorly documented, but it sounds like it might help achieve what you want.

ashishp
Creator
Creator
Author

Any suggestions ? 

NadiaB
Support
Support

Hi @ashishp 

Are you trying to make that limit based on a calculation? or the first 10000 rows on the table? 

The only think I can think of if you want to show for example top 10000 Sales, it will be to use the Limitation(fixed number) option  for the dimension in question. 

Is there any particular reason that you want to limit the amount of rows? Maybe if you could provide a little more information about what you are trying to achieve the community might have some ideas for that specific business need.

Kind Regards, 

Don't forget to mark as "Solution Accepted" the comment that resolves the question/issue. #ngm