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     [CLOSED]Bar chart should display top 5 discnt as 5 bars and 6th bar should be others

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED]Bar chart should display top 5 discnt as 5 bars and 6th bar should be others
 Login/Join
 
Member
posted
TABLE FILE DISCOUNTS
SUM
DISCOUNTS.DISCOUNTS.DiscountCount
-*BY HIGHEST 5
MAX.DISCOUNTS.DISCOUNTS.DiscountCount
BY DISCOUNTS.DISCOUNTS.BusinessDate
WHERE DISCOUNTS.SITECONCEPT.SiteConceptNumber EQ &Concept_No;
WHERE DISCOUNTS.LOCATION.LocationID IN (&Location);
WHERE DISCOUNTS.DISCOUNT.DepartmentID IN (&Dept_ID);
WHERE DISCOUNTS.DISCOUNT.DiscountID IN (&Discount_ID);
WHERE (DISCOUNTS.DISCOUNTS.BusinessDate GE '&Start_Date') AND (DISCOUNTS.DISCOUNTS.BusinessDate LE '&End_Date');
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE HOLD AS DISC FORMAT ALPHA
END
-RUN

?FF DISC

JOIN INNER ROLLING_DATES.ROLLING_.BusinessDate IN ROLLING_DATES TO MULTIPLE DISC.DISC.BusinessDate IN DISC TAG J0 AS J0
END

GRAPH FILE ROLLING_DATES
SUM
J0.DISC.E02 AS 'Discount Type Counts'
BY ROLLING_DATES.ROLLING_.GroupBy AS 'Date';
BY HIGHEST 5 DIS.DIS.RNK.DiscountCount
ON GRAPH PCHOLD FORMAT JSCHART
ON GRAPH SET VZERO OFF
ON GRAPH SET HTMLENCODE ON
ON GRAPH SET GRAPHDEFAULT OFF
ON GRAPH SET GRWIDTH 1
ON GRAPH SET EMBEDHEADING ON
ON GRAPH SET HAXIS 770.0
ON GRAPH SET VAXIS 405.0
ON GRAPH SET GRMERGE ADVANCED
ON GRAPH SET GRMULTIGRAPH 0
ON GRAPH SET GRLEGEND 0
ON GRAPH SET GRXAXIS 1
ON GRAPH SET LOOKGRAPH VBAR
ON GRAPH SET AUTOFIT ON
ON GRAPH SET STYLE *
*GRAPH_SCRIPT
setPieDepth(0);
setPieTilt(0);
setDepthRadius(0);
setCurveFitEquationDisplay(false);
setPlace(true);
*END
INCLUDE=IBFS:/WFC/Repository/Styles_and_Images/RosnetRpt.sty,$
-*TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, $
*GRAPH_SCRIPT
setDisplay(getX1Title(),false);
setDisplay(getY1Title(),true);
setReportParsingErrors(false);
setSelectionEnableMove(false);
setLineStyleLegendMarkers(2);
setTextRotation(getY1Label(),0);
setTextRotation(getO1Label(),3);
setLabelStagger(getO1Label(),true);
setDisplay(getDataText(0), true);
setDataTextDisplay(false);
setTransparentBorderColor(getChartBackground(),true);
*END
ENDSTYLE
END
-RUN

I have used highest 5 and max operators but the graph is not being displayed

This message has been edited. Last edited by: FP Mod Chuck,


WEBFOCUS, WINDOWS, REPORTS
 
Posts: 14 | Registered: May 07, 2018Report This Post
Virtuoso
posted Hide Post
Hi Nihitha

Welcome to Focal Point. It is a great forum for WebFOCUS developers...

Try changing the order of your JOIN and make it a UNIQUE join as below


JOIN INNER DISC.DISC.BusinessDate IN DISC TO UNIQUE ROLLING_DATES.ROLLING_.BusinessDate IN ROLLING_DATES TAG J0 AS J0
END

GRAPH FILE DISC


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 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     [CLOSED]Bar chart should display top 5 discnt as 5 bars and 6th bar should be others

Copyright © 1996-2020 Information Builders