Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Group By a computed field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Group By a computed field
 Login/Join
 
<Leah Bell>
posted
I am trying to group by a computed field. I have two fields from a table that I concatenated as a compute. Now I need to group by on that new concatenated field. I am getting the error message that you can't sort or group by on a computed field in report painter. Is there a work around? Can you group by on it if it is set up as a define?
 
Report This Post
Guru
posted Hide Post
You cannot just simply do a BY on a COMPUTEd field because of when it is created. You will need to use a BY TOTAL if you don't want to move the COMPUTEd field to DEFINEd field or if you don't want to create hold file.

TABLE FILE CAR
SUM
SEATS
COMPUTE SEATS_P/I6 = SEATS + 1;
BY COUNTRY
BY TOTAL LOWEST SEATS_P
BY CAR
END
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Guru
posted Hide Post
It is correct that you cannot do a straight BY on a COMPUTEd field. You must do a BY TOTAL. In the report painter, right click on your computed field and choose ORDER REPORT BY.

Is SORTing BY the concatenated field all you want to do?

If you want to do
BY fldname IN-GROUPS-OF
then you would have to do this as a DEFINE field or perhaps create a hold file with your COMPUTEd field and then group it in a second step. It will depend on the kind of performance that you are getting on your report.

If you are reporting against an RDBMS it might be better to pull the data and concatenate as a COMPUTE and do the GROUP-BY in a second step.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Group By a computed field

Copyright © 1996-2020 Information Builders