on 07-05-2015 8:57 AM
Hi all,
I have some data in the following way. I need to sum up the qty of least(minimum) transaction date and display on group header (group 1 :item)
Item | tran date | qty |
CB-5M-921-003 | 2/25/2014 | 4 |
CB-5M-921-003 | 2/25/2014 | 6 |
CB-5M-921-003 | 03/12/2014 | 11 |
CB-5M-921-003 | 3/22/2014 | 5 |
CB-5M-921-003 | 3/22/2014 | 8 |
CB-5M-921-003 | 4/25/2014 | 9 |
group 1 : item
group 2 : tran date
output in group header 1 : item : CB-5M-921-003 Qty : 10
please let me know your views .
Hi Akram,
This is fairly easy to achieve if you wish to display this on the Group Footer.
Since you need to display this on the Group header, here's what you need to do:
1) Save the existing report in a folder
2) Go to Insert > Subreport > Select 'choose an existing report' and browse to the report you saved in step 1
3) Place the Subreport on the Group Header 1
4) Right-click the Subreport > Change Subreport Links > Move the 'Item' field to the pane on the right > From the drop-down at the bottom right where it says 'Select data in Subreport based on field', choose the 'Item' field
5) Double-click the Subreport so that you enter the design pane > Suppress all sections except the Report Footer
6) Create a formula with this code and place this on the details:
whileprintingrecords;
numbervar s;
if {tran_date} = Minimum({tran_date}, {Item}) then
s := s + {qty};
'';
7) Create another formula with this code and place this on the Report Footer of the Subreport:
whileprintingrecords;
numbervar s;
😎 Format the Subreport so that it matches any formatting on the Main Report.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1) Right-click Running Total Fields under Field Explorer > New.
Choose the 'Qty' field as the Field to Summarize.
Under 'Evaluate', select 'Use a formula' and use this code:
{tran_date} = Minimum({tran_date}, {Item})
Under 'Reset', select 'Never'.
2) Place this Running Total on the Group Footer.
-Abhilash
Hi Akram,
Create a new Running Total, say RTQty. In general properties of RTQty, change the Reset Condition to "Use Formula" and use the formula as:
{tran date}=minimum({tran date})
and use this formula in the group header.
-Ankush
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.