|
Go
![]() |
New
![]() |
Search
![]() |
Notify
![]() |
Tools
![]() |
Reply
![]() |
|
|
Master |
Jonathan Sutter
If you always have the same # of fields and across' in the report. You might try holding the data with the across in it. This will create new fields for each field in the across. After you hold the report issue a Replace HOLDFILENAME with the name of your hold file. This will give you a list of fields in the hold file. Then you can print the fields and compute a your own row total field and print it. Give this a try and post your results. |
|||
|
|
Guru |
You can try a technique COMPUTEing a field AFTER the sort statements and using column-notation.
Here's an example: TABLE FILE EMPDATA SUM SALARY BY DEPT ACROSS DIV COMPUTE EAST_TOTAL/D12.2MS = C3 +C4; AS 'Total - East' COMPUTE OTH_TOTAL/D12.2MS = C1 + C2 + C5; AS 'Total - Other' END Just be aware that if you change the field format of the verb objects, on the fly, you end up with 2 internal columns so your column notation has to take into account 2 occurrences of every column. If that doesn't make sense, let me know and I'll explain. |
|||
|
| <steegh>
|
There is a simple way to solve this problem, with one disadvantage.
You can use u multi verb request as follows: SUM DEFINE_FIELD BY SORT1 BY SORT2 SUM OTHER_FIELD BY SORT1 BY SORT2 ACROSS ACROSS_FIELD END The only problem is that the total field will be in front of the across fields. GR. Robert |
||
|
| <Jonathan Sutter>
|
Thanks to all three of you for your suggestions. The multiverb approach won't work for me due to specific layout needs. I tried the COMPUTE after the ACROSS and it didn't recognize the COMPUTE. I haven't tried the HOLD idea yet. Alas, due to an imminent change in duty stations, I will no longer be developing reports with WebFocus so I cannot pursue this one further.
|
||
|
| Previous Topic | Next Topic | powered by eve community |
| Please Wait. Your request is being processed... |
|

