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     [SOLVED]Chart with "Comma" in X-Axis

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Chart with "Comma" in X-Axis
 Login/Join
 
Platinum Member
posted
hi,
I have a chart that shows Part numbers on the X-Axis and Values on Y.
Problem is that some of Part number has "comma" and that's why the Partnumber is showing incorrectly on the chart.
Is there a way to to show "comma"?

Thanks

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


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Platinum Member
posted Hide Post
I was able to fix the issue by changing
ON GRAPH SET GRMERGE ADVANCE
to
ON GRAPH SET GRMERGE ON

and instead of
ACROSS Partnumber COLUMNS
used
BY PartnumberSort NOPRINT
BY Partnumber

Still curious to know how to use
ACROSS Partnumber &COL
where &COL is dynamically created with Partnumbers containing "," and '&B'

Thanks


WebFOCUS 8202M
 
Posts: 167 | Location: Montreal | Registered: September 23, 2014Report This Post
Guru
posted Hide Post
BM,

Are your referring to something such as:

ACROSS CAR COLUMNS '&CAR1' AND '&CAR2' AND '&CAR3'

Using dialogue manager you can set the value of the &var

-SET &CAR1 = 'JAGUAR';
-SET &CAR2 = 'AUDI';

Within the quotes you can add the comma and if there is '&' required you can use the following:

-SET &CAR3 = '&'|'abc';

Thank you for participating in the Focal Point Forum.

Kindest regards,
Tamra Colangelo
Focal Point Moderator - Information Builders Inc.
* Summit 2016 – June


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5
 
Posts: 487 | Location: Toronto | Registered: June 23, 2009Report This Post
Expert
posted Hide Post
The original post mentions the problem is that the dimension column values contain commas and I think the issue is how to create the &COL variable which includes these column values.

&COL1 is created with the actual values. &COL2 is created by concatenating pre-existing variables containing single values. Both methods work. Please let us know if this is not what you're trying to do. I suspect you're trying method 2 - you need a lot of single quotes when playing with single quotes...

-SET &ECHO=ALL;

-SET &COL1 = ' ''FRANCE, TEST'' AND ''JAPAN, TEST'' AND ''ENGLAND, TEST'' AND ''W GERMANY, TEST'' AND ''ITALY, TEST'' ';

-SET &CN1 = 'FRANCE, TEST';
-SET &CN2 = 'JAPAN, TEST';
-SET &CN3 = 'ENGLAND, TEST';
-SET &CN4 = 'W GERMANY, TEST';
-SET &CN5 = 'ITALY, TEST';

-SET &COL2 = '''' | &CN1 | '''' | ' AND ' | '''' | &CN2 | '''' | ' AND ' | '''' | &CN3 | '''' | ' AND ' | '''' | &CN4 | '''' | ' AND ' | '''' | &CN5 | '''';

DEFINE FILE CAR
COUNTRY_TEST/A40=COUNTRY || ', TEST';
END
-RUN

ENGINE INT CACHE SET ON
-RUN

GRAPH FILE CAR
SUM DEALER_COST
ACROSS COUNTRY_TEST COLUMNS &COL2
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET UNITS PIXELS
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VLINE
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
setUseSeriesShapes(true);
setMarkerSizeDefault(50);
*END
INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT='WebFOCUS Report', $
*GRAPH_SCRIPT
setReportParsingErrors(false);
setSelectionEnableMove(false);
*END
ENDSTYLE
END
-RUN


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     [SOLVED]Chart with "Comma" in X-Axis

Copyright © 1996-2020 Information Builders