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] Traffic Light Conditions

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Traffic Light Conditions
 Login/Join
 
Member
posted
I have a barchart that I created. On the chart I have added a 'goal' line of 400 and I want to add a traffic light for a condition to show that if the weekly load count was 400 or more the bar is green. If less the bar is red.

I applied a CNT function to this field I am applying the Traffic Light condition to, and when I run the report all of the bars turn green even though some do not meet the requirement. I have used the Traffic Light function numerous times without issue, so I am wondering if it is not allowed or does not function like it should after I applied the CNT function.

I am relatively new to the BI app, but have created several reports and have not run in to this yet.

I am using Version 7 Release 7.03.

Thanks,
Jeff

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


WF Version 7 Release 7.03
Excel, HTML
 
Posts: 2 | Registered: February 05, 2014Report This Post
Expert
posted Hide Post
Jeff,

Are you applying it to all data instead of just one column?

Please try and replicate the situation with the CAR or GGSALES file and post it (using [ code] and [/code] tags Smiler) so that we can see how you are coding this.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
I am not sure what or where the CAR or GGSALES files are, but here is the code for this chart.

I am not someone who writes code, so I want to make sure that is clear. I am a business analyst and am creating the reports and charts using the Infoassist and WebFocus tools.

Hopefully this is what you are looking for:


-*Do not delete or modify the comments below
*-INTERNAL_COMMENT LINE#0$CjxSb290IHZlcnNpb249IjEuMCIgPgogICA8T2JqZWN0IG9iamVjdElkPSJDaGFydF8xIiA+CiAgICAgIDxQcm9wZXJ0eSBuYW1lPSJDcm9zc1RhYk1vZGUiIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIiA+dHJ1ZTwvUHJvcGVydHk+CiAgICAgIDxQcm9wZXJ0eSBuYW1lPSJMaW5rZWRTb3J0cyIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyIgPjwvUHJvcGVydHk+CiAgIDwvT2JqZWN0PgogICA8T2JqZWN0IG9iamVjdElkPSJHTE9CQUwiID4KICAgICAgPFByb3BlcnR5IG5hbWU9IlNhbXBsZURhdGEiIHR5cGU9ImphdmEubGFuZy5Cb29sZWFuIiA+dHJ1ZTwvUHJvcGVydHk+CiAgICAgIDxQcm9wZXJ0eSBuYW1lPSJHbG9iYWxSZWNvcmRMaW1pdCIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyIgPjEwMDwvUHJvcGVydHk+CiAgICAgIDxQcm9wZXJ0eSBuYW1lPSJmaWVsZERpc3BsYXlNb2RlIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIiA+bGFiZWw8L1Byb3BlcnR5PgogICAgICA8UHJvcGVydHkgbmFtZT0icHJlZml4RGlzcGxheU1vZGUiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciID48L1Byb3BlcnR5PgogICAgICA8UHJvcGVydHkgbmFtZT0iZW5hYmxlUHJldmlldyIgdHlwZT0iamF2YS5sYW5nLkJvb2xlYW4iID50cnVlPC9Qcm9wZXJ0eT4KICAgICAgPFByb3BlcnR5IG5hbWU9IkxpbmtlZFNvcnRzIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIiA+PC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0cmluZyIgPnRydWU8L0VudHJ5PgogICAgICAgICA8RW50cnkga2V5PSJkaXNwbGF5RGF0YVRhYkluZm9NaW5pUHJlZmVyZW5jZSIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyIgPmZhbHNlPC9FbnRyeT4KICAgICAgICAgPEVudHJ5IGtleT0iZWRpdG9yVHlwZV92aXNpYmxlIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIiA+dHJ1ZTwvRW50cnk+CiAgICAgICAgIDxFbnRyeSBrZXk9InRoZW1lc19jb250cm9sX3Zpc2libGUiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciID50cnVlPC9FbnRyeT4KICAgICAgICAgPEVudHJ5IGtleT0iZGlzcGxheVNsaWNlcnNUYWJJbnRlcmFjdGl2ZUluZm9NaW5pUHJlZmVyZW5jZSIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyIgPnRydWU8L0VudHJ5PgogICAgICAgICA8RW50cnkga2V5PSJkaXNwbGF5TGF5b3V0VGFiSW5mb01pbmlQcmVmZXJlbmNlIiB0eXBlPSJqYXZhLmxhbmcuU3RyaW5nIiA+ZmFsc2U8L0VudHJ5PgogICAgICA8L1Byb3BlcnR5PgogICAgICA8UHJvcGVydHkgbmFtZT0iY2FzY2FkZU5hbWVzIiB0eXBlPSJNYXAiID48L1Byb3BlcnR5PgogICAgICA8UHJvcGVydHkgbmFtZT0iTWFzdGVy
*-INTERNAL_COMMENT LINE#1$X0ZpbGVzIiB0eXBlPSJTZXQiID4KICAgICAgICAgPEVudHJ5IHR5cGU9ImphdmEubGFuZy5TdHJpbmciID5MT0FEX1BFUkZPUk1BTkNFPC9FbnRyeT4KICAgICAgPC9Qcm9wZXJ0eT4KICAgPC9PYmplY3Q+CjwvUm9vdD4=
-*Do not delete or modify the comments above

-*COMPONENT=Define_LOAD_PERFORMANCE
DEFINE FILE LOAD_PERFORMANCE
TenderMonth/MYY=HDATE ( LOAD_PERFORMANCE.INDEX_FIELDS.LPC_TENDER_DATE , 'YYMD' ) ;
CurrentDate/YYMD='&YYMD' ;
LastMonth/I2=HPART ( DT ( &YYMD ) , 'MONTH' , 'I2' ) - 1 ;
TenderYear/YY=HPART ( LOAD_PERFORMANCE.INDEX_FIELDS.LPC_TENDER_DATE , 'YEAR' , 'I4' ) ;
CurrentYear/I4=HPART ( DT ( &YYMD ) , 'YEAR' , 'I4' ) ;
TenderWeek/MDYY=DATEMOV ( HDATE ( LOAD_PERFORMANCE.INDEX_FIELDS.LPC_TENDER_DATE , 'YYMD' ) , 'EOW' ) ;
END
GRAPH FILE LOAD_PERFORMANCE
-* Created by Info Assist for Graph
COUNT CNT.LOAD_PERFORMANCE.PRIMARY_LOAD_FIELDS.LPC_SHIPPER_LOAD_NBR
BY TenderWeek
WHERE LOAD_PERFORMANCE.INDEX_FIELDS.LPC_TENDER_DATE GE DT('&&DTE_LAST_QUARTER_START.LAST_QUARTER_START.') AND LOAD_PERFORMANCE.INDEX_FIELDS.LPC_TENDER_DATE LE DT('&&DTE_TODAY.DTE_END.');
WHERE LOAD_PERFORMANCE.INDEX_FIELDS.LPC_TENDER_DATE GE DT(2013/01/01);
WHERE LOAD_PERFORMANCE.PRIMARY_LOAD_FIELDS.LPC_GROUP_NAME EQ '3RD PARTY';
HEADING
"Weekly Load Volume - 3PL"
ON GRAPH PCHOLD FORMAT PNG
ON GRAPH SET HAXIS 770
ON GRAPH SET VAXIS 405
ON GRAPH SET UNITS PIXELS
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET PAGE-NUM NOLEAD
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET VZERO OFF
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET GRAPHSTYLE *

setReportParsingErrors(false);
setSelectionEnableMove(false);
setCurveFitEquationDisplay(false);
setPieFeelerTextDisplay(1);
setPlace(true);
setDataTextDisplay(true);
setDisplay(getDataText(0),true);
setDisplay(getDataText(1),true);
setDisplay(getDataText(2),true);
setDisplay(getDataText(3),true);
setDisplay(getDataText(4),true);
setDisplay(getDataText(5),true);
setDisplay(getDataText(6),true);
setDisplay(getDataText(7),true);
setDisplay(getDataText(8),true);
setDisplay(getDataText(9),true);
setDisplay(getDataText(10),true);
setDisplay(getDataText(11),true);
setDisplay(getDataText(12),true);
setDisplay(getDataText(13),true);
setDisplay(getDataText(14),true);
setDisplay(getDataText(15),true);
setDisplay(getDataText(16),true);
setDisplay(getDataText(17),true);
setDisplay(getDataText(18),true);
setDisplay(getDataText(19),true);
setDisplay(getDataText(20),true);
setDisplay(getDataText(21),true);
setDisplay(getDataText(22),true);
setDisplay(getDataText(23),true);
setDisplay(getDataText(24),true);
setDisplay(getDataText(25),true);
setDisplay(getDataText(26),true);
setDisplay(getDataText(27),true);
setDisplay(getDataText(28),true);
setDisplay(getDataText(29),true);
setDisplay(getDataText(30),true);
setDisplay(getDataText(31),true);
setDisplay(getDataText(32),true);
setDisplay(getDataText(33),true);
setDisplay(getDataText(34),true);
setDisplay(getDataText(35),true);
setDisplay(getDataText(36),true);
setDisplay(getDataText(37),true);
setDisplay(getDataText(38),true);
setDisplay(getDataText(39),true);
setDisplay(getDataText(40),true);
setDisplay(getDataText(41),true);
setDisplay(getDataText(42),true);
setDisplay(getDataText(43),true);
setDisplay(getDataText(44),true);
setDisplay(getDataText(45),true);
setDisplay(getDataText(46),true);
setDisplay(getDataText(47),true);
setDisplay(getDataText(48),true);
setDisplay(getDataText(49),true);
setDisplay(getDataText(50),true);
setDisplay(getDataText(51),true);
setDisplay(getDataText(52),true);
setDisplay(getDataText(53),true);
setDisplay(getDataText(54),true);
setDisplay(getDataText(55),true);
setDisplay(getDataText(56),true);
setDisplay(getDataText(57),true);
setDisplay(getDataText(58),true);
setDisplay(getDataText(59),true);
setDisplay(getDataText(60),true);
setDisplay(getDataText(61),true);
setDisplay(getDataText(62),true);
setDisplay(getDataText(63),true);
setSeriesType(2,0);
setTextRotation(getO1Label(),3);
setFontName(getO1Label(),"SansSerif");
setFontSizeAbsolute(getO1Label(),true);
setFontSizeInPoints(getO1Label(),10);
setPlaceResize(getO1Label(),0);
setFontStyle(getO1Label(),0);
setTextJustHoriz(getO1Label(),2);
setFillColor(getO1Label(),new Color(66,70,73));
setCurveFitType(0,2);
setCurveFitType(1,2);
setCurveFitType(2,2);
setDisplay(getLegendArea(),false);
setColorMode(1);
setPieTilt(0);
setPieDepth(0);
setDepthRadius(0);
setDepthAngle(0);
setReferenceTextPosition(getReferenceLineTextY1(0),0);
setDisplay(getReferenceLineY1(0),true);
setBorderColor(getReferenceLineY1(0),new Color(255,128,0));
setFillColor(getReferenceLineTextY1(0),new Color(255,128,0));
setReferenceLineValueY1(0,400.0);
setLineWidth(getReferenceLineY1(0),3);
setLineBasicStrokeType(getReferenceLineY1(0),16);
setTextString(getReferenceLineTextY1(0),"GOAL");
setDisplay(getReferenceLineTextY1(0),true);
ENDSTYLE
ON GRAPH SET STYLE *
INCLUDE=IBFS:/CFG/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
DEFMACRO=Condition_1, COLOR=RGB(0 255 0), WHEN=N2 GE '400', $
DEFMACRO=Condition_2, COLOR=RGB(255 0 0), WHEN=N2 LT '400', $
TYPE=REPORT, ORIENTATION=LANDSCAPE, $
TYPE=TABHEADING, JUSTIFY=CENTER, FONT='Trebuchet MS', SIZE=14, COLOR=RGB(66 70 73), STYLE=BOLD+ITALIC, $
TYPE=TABHEADING, LINE=1, JUSTIFY=CENTER, $
TYPE=TABHEADING, LINE=2, JUSTIFY=CENTER, $
TYPE=HEADING, JUSTIFY=LEFT, FONT='Trebuchet MS', SIZE=10, COLOR=RGB(66 70 73), STYLE=BOLD, $
TYPE=DATA, COLUMN=N2, MACRO=Condition_1, $
TYPE=DATA, COLUMN=N2, MACRO=Condition_2, $
ENDSTYLE
END

-RUN

{status:'SUCCESS',hasstatus:true,exception:[]}


WF Version 7 Release 7.03
Excel, HTML
 
Posts: 2 | Registered: February 05, 2014Report 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] Traffic Light Conditions

Copyright © 1996-2020 Information Builders