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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

can chart pulls only 500 random records?

Hi All,

I have a sheet object (chart with dimension and expression).Depending upon the user selection,it brings back records.Few months before user specified they only want to see any 100 random records in that object.To achieve this, added a slider with max range 100.As per user selection in the slider,chart shows that many records and user exports those many records to xls easily.

Now user wants to export 500 random records.With slider can not do that as in the chart presention tab Max number is set 1-100.Even though changed the slider settings to 500,chart could not show more than 100 records.

Does anyone know whether there is a way that doc can pull all the records but chart only show any 500 random records.

Thanks-Pooja

1 Solution

Accepted Solutions
qliksus
Specialist II
Specialist II

Hi ,

Sorry for the late reply

Please find the attached file for the solution

View solution in original post

4 Replies
qliksus
Specialist II
Specialist II

Currently u will be using the varibale of the slider in the Max Number  now in

the expression use the Rank function to limit the records  i.e  say ur varibale is Limit 

this varibale will be given in the Max Number and in the expression  give a condition like

if (  $(Limit) <=100 , sum(amount) ,

if (  $(Limit) >=100 or ( Rank( sum(amount) >100 and Rank( sum(amount)) <=500 ) , sum(amount) , 0))

if i have understood ur example wrongly let me know

Not applicable
Author

Thanks for your response.I am little confused ...here I have attached a sample chart which has 4355 records.Can you please modify this sample with your code.Just need to export random 500 records to xls.

Thanks again!

qliksus
Specialist II
Specialist II

Hi ,

Sorry for the late reply

Please find the attached file for the solution

Not applicable
Author

Thank you so much!