title: How to sum up master current page and current row count in subreport?
body: <p>In my JasperReport project using Jaspersoft Studio, I would like to create a column in my table that is the <strong>sum</strong> of the <strong>current page number</strong> (where the table is) and the <strong>current row number</strong> (starting from 1) like this :</p>
  
  <pre><code>+------------------------+-------------+---------------+
  | Summary | Current page | Current row | Page of Title |
  +------------------------+-------------+---------------+
  | Title 1 |            4 |           1 |             5 |
  +------------------------+-------------+---------------+
  | Title 2 |            4 |           2 |             6 |
  +------------------------+-------------+---------------+
  | Title 3 |            4 |           3 |             7 |
  +------------------------+-------------+---------------+
  </code></pre>
  
  <p>My table is in a Subreport so I tried to sum up <strong>${MASTER_CURRENT_PAGE}</strong> and <strong>${REPORT_COUNT}</strong> but the first must be evaluated to <strong>Master</strong> and the second to <strong>Now</strong> to have correct values.</p>
  
  <p>I am learning to use the software on the job, I saw that I could create custom variables - it may be the solution - but I don't know how to do what I want.</p>
  
  <p>Does a ninja have the solution?</p>