This field is required.
Only these extensions are allowed(.jpg, .JPG, .jpeg, .JPEG, .gif, .GIF, .png, .PNG)
Tags cannot contain the characters ' /, \\, #, ?, or ; >,< '
Only these extensions are allowed(.zip,.ZIP,.pdf,.PDF,.qvf,.QVF,.qvw,.QVW)
If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
I have a sheet to be used for monitoring database automation, which contains a large number of records.
The sheet allows for drilling down by several different criteria to filter down the records, where users may identify certain irregularities.
Based on the filtered data I'd like to display a set of random distinct [JOB NO] values in a text box or table against the filtered records for the user to help investigate irregularities identified.
I can use maxstring/minstring to pull a couple of values but ideally i'd like a true random selection of 5ish values in the filtered data.
If [JOB NO] is numeric, you could use min(field,rank) with some sort of sampling or randomizing of the rank parameter.
If it's string, you could use
FirstSortedValue([JOB NO], sort-weight, rank)
where sort-weight is some numeric field you can associate with JOBNO, perhaps generating a number in the script.
View solution in original post
You can use Autonumber() function in load script to achieve this.
syntax: Autonumber([Job ID])
You could load a random sample from your data source. Check out the SAMPLE keyword in the online help:
Thanks all, doing this dynamically within the sheet isn't easy as I'd hoped!
Rob's response gives me a fit for purpose result.