Group 1 Item1 1 Item2 2 Item3 3 Item4 4 Item5 5 Subtotal 0 Group 2 Item1 1 Item2 2 Subtotal 15 (get from subtotal of Group1)I had the code below:
Public totalRevenue As Decimal Public Function SumUp(ByVal value As Decimal,ByVal value2 As Integer) As Decimal If value2 = 1 then totalRevenue = 0 End If totalRevenue = totalRevenue + value Return totalRevenue End FunctionThe line detail was grouped by items, I use below code to call the function at the anohter textbox on this detail line
=Code.SumUp(ReportItems!Lab_Revenue.Value,RowNumber("Group_Labor"))
Comments
Thank you
Last( Fields!<variable>.Value)
where <variable> is variable of the blue column.
if this a field, normally you can get sub total or total by using SUM in RTC.
ERP Consultant - MS Dynamics NAV
https://lk.linkedin.com/pub/lakshan-vindana-kulawansa/37/2a2/592
http://mibuso.com/blogs/clausl/2012/06/24/offline-preview-and-debug-reports-in-microsoft-dynamics-nav-2013/
/Claus Lundstrøm
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)
Hi Navca, still not yet
Thanks, I tried it but nothing change