pandit.sumit Posted July 30, 2014 Posted July 30, 2014 I have the following query for a dataset:select item, sum(salesAmount) as TotalSales from sales group by item order by TotalSales desc;and I have set REPORT_COUNT<=5 for limiting the data to 5 records only. Now I want to display top 5 items through a list component and their Sales Amount in percentage to that of the TotalSales amount of the top 5 items. I have created a variable in the dataset as sales_sumclass: BigDecimalCalculation : SumReset Type : ReportIncrement Type : NoneVariable Expression : $F{TotalSales}Now I am adding a text field and using expression $F{TotalSales}/$V(sales_sum) and set the evaluation time to Auto. But it is returning null and a NullPointerException What should I do? Thank you
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now