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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.


Connect to myibi
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED]VBAR Graph with multiple across values and print second across values

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]VBAR Graph with multiple across values and print second across values
 Login/Join
 
Silver Member
posted
Hello

From the below sample graph request, is there a way for me to print car values instead of country values on the X axis

GRAPH FILE CAR
SUM
DEALER_COST
RETAIL_COST
SALES
ACROSS COUNTRY NOPRINT
ACROSS CAR AS ''
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET 3D OFF
ON GRAPH SET VAXIS 385
ON GRAPH SET HAXIS 600
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 2
ON GRAPH SET GRXAXIS 2
WHERE COUNTRY IN ('ENGLAND','JAPAN')
END
-RUN
-EXIT

Your help is greatly Appreciated.
Thanks

This message has been edited. Last edited by: <Emily McAllister>,


7.7.02, sql server
Windows
all output (Excel, HTML, PDF)
 
Posts: 38 | Registered: April 26, 2010Report This Post
Virtuoso
posted Hide Post
Use a BY, not an ACROSS:
GRAPH FILE CAR
SUM
	DEALER_COST 
	RETAIL_COST 
	SALES 
BY COUNTRY NOPRINT
BY CAR AS ''
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET 3D OFF
ON GRAPH SET VAXIS 385
ON GRAPH SET HAXIS 600
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 2
ON GRAPH SET GRXAXIS 2
WHERE COUNTRY IN ('ENGLAND','JAPAN')
END
-RUN
-EXIT


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Silver Member
posted Hide Post
But I want the two graphs on the same X and Y coordinates. I am expecting a X axis with first England and its car values followed by Japan and its car values.


7.7.02, sql server
Windows
all output (Excel, HTML, PDF)
 
Posts: 38 | Registered: April 26, 2010Report This Post
Virtuoso
posted Hide Post
Oh ! This is something different and I don't think that it will be feasible with out of the box bar graph (except if you, maybe, pre-defines the data to result in one number by the country and one by the car : which may result in "two" bar where having proper "real" by field. But I'm really not sure of that and may need some bunch of coding).

I think that it is better to change your graph format. You have many other format where you can display two different by/measure on the same graph. Explore the possibilities.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report 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     [CLOSED]VBAR Graph with multiple across values and print second across values

Copyright © 1996-2020 Information Builders