filter - Jaspersoft: Show Top 20 Results in Crosstab with conditional sorting -


i trying show top 20 results in crosstab, after conditional sorting has been performed.

  1. user selects $p{variance} = "positive", "negative" or "absolute value".

  2. a calculation performed based on of these selected: (a-b); (b-a); or abs(a-b).

  3. $v{datasort_measure} performs sorting in crosstab.

  4. i have filter expression on crosstab dataset limits number of results: ($v{report_count} > new integer(20)) ? false : true

problem: right 1. crosstab dataset filtered down 20 results 2. 20 returned data rows calculated and sorted

so i'm not getting top 20 results based on user-selected parameter $p{variance} (ie, top increased or decreased products).

i'm getting top 20 alphabetic products, , sorted $p{variance}.

what need way to  1. perform user-determined calculation on data 2. sort data 3. limit data top 20

how can this? * cannot sql query bc company stuck domain language.  * there way single crosstab dataset? * or need fancy sequence of passing datasets between different report elements? if need go route, can point me in proper direction? thx!


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -