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     Bar Graph and Report-Sorting with By fields.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Bar Graph and Report-Sorting with By fields.
 Login/Join
 
Gold member
posted
Hi All,
I want to generate a bar graph and report with it on the basis of the By fields.
Actually, right now we have two years data.
Our graph should display the year-2010 week number at the first and year-2011 week number after that.
In the graph we are displaying the week no in Across.

I have tried using a BY YEAR and then BY WEEK_NO.
but not getting the required result.

Thanks in advance.

Thanks
Arpita

This message has been edited. Last edited by: Arpita,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 43 | Registered: October 04, 2010Report This Post
Virtuoso
posted Hide Post
You can do that with two BY fields if you use the Advanced Graph Editor. Something like this:
GRAPH FILE TABULAR_REP10
SUM 'TABULAR_REP10.SEG01.NO_OF_COMPANIES' 'TABULAR_REP10.SEG01.NO_OF_EMPLOYEES'
-*BY YRWK NOPRINT
BY 'TABULAR_REP10.SEG01.YR'
BY 'TABULAR_REP10.SEG01.WEEK_NO' AS 'ANALYSIS PERIOD'

-* This is the important section, it tells that you use the top 2 BY's
-* for the X-axis
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 2
-****

ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET GRAPHEDIT SERVER
ON GRAPH SET BARNUMB OFF
ON GRAPH SET 3D OFF
ON GRAPH SET VZERO ON
ON GRAPH SET GRID ON
ON GRAPH PCHOLD FORMAT PNG



WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Gold member
posted Hide Post
Hi Wep,
Thanks a lot for your reply.
I tried the advanced graph option.
Sorry to say, its not woeking properly.
First it was not reconising the field name.
And after that some error is coming.The error is: (FOC32466) MERGE DIMENSIONS EXCEED THE NUMBER OF SORT FIELDS
Actually wep, i just want to display Week_no in X axis and i have read from some of the post that NOPRINT does'nt work in Graph.

I read in many other post about some save option , then using it in the graph.
But i exactly don't know the syntax.
Could you please help me.

Thanks
Arpita


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 43 | Registered: October 04, 2010Report This Post
Virtuoso
posted Hide Post
You got that error because you didn't specify GRXAXIS 2.

I can't help you with the SAVE option, no idea what that's about.


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Gold member
posted Hide Post
Hi Wep,
Thanks a lot for your reply.
Now, it is working fine.
Thanks for your suggestion.

Thanks
Arpita


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 43 | Registered: October 04, 2010Report 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     Bar Graph and Report-Sorting with By fields.

Copyright © 1996-2020 Information Builders