Glenn,
Yes, Welcome to the forum!
The answer from one of our very helpful members is code related - you can accomplish the same idea using the GUI tool.
Within the InfoAssist tool - take the example provided with the COMPUTE logic and add your fields as needed.
To add a calculated new field:
- click on "Data" tab in the top tool bar
- the field appears as Compute_1 - change to the example's CUME_COUNTRY
- change the Format if necessary
- in the blank space added the logic after the "=" in the example provided - the ";" is not needed
Based on the sorted fields the LAST command compares the current record to the previous record and then evaluates the IF / THEN / ELSE.
With the information provided by Dave and the InfoAssist steps above this should 'get you started'
Let us know how you are getting along with your report. We are all here to help out.
Thank you for participating in the Focal Point Forum.
Kind Regards,
Tamra Colangelo
IBI Focal Point Moderator
WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5