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.
I have a chart that displays daily sales with a 5 day rolling average. Since our sales on Saturday and Sunday are much lower that during the week it skews the rolling average. What I want to do is roll the sales for Saturday and Sunday into Friday. So far I have not been able to figure this out.
Below is code for the report:
-*Do not delete or modify the comments below *-INTERNAL_COMMENT LINE#0$PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8IS0tMS4wLS0+PFJvb3QgcmVsZWFzZT0iOC4yLjAuMSIgdmVyc2lvbj0iMS4yIj4NCiAgICA8T2JqZWN0IG9iamVjdElkPSJUYWJsZUNoYXJ0XzEiPg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iTGlua2VkU29ydHMiIHR5cGU9ImphdmEubGFuZy5TdHJpbmciLz4NCiAgICAgICAgPFByb3BlcnR5IG5hbWU9ImNvbXBvbmVudEN1c3RvbVRpdGxlIiB0eXBlPSJqYXZhLmxhbmcuQm9vbGVhbiI+ZmFsc2U8L1Byb3BlcnR5Pg0KICAgICAgICA8UHJvcGVydHkgbmFtZT0iRmlsdGVyc1N0YXR1cyIgdHlwZT0iamF2YS5sYW5nLlN0cmluZyI+JmFtcDtsdDs/eG1sIHZlcnNpb249JmFtcDtxdW90OzEuMCZhbXA7cXVvdDsgZW5jb2Rpbmc9JmFtcDt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EQ5NGJXd2dkbVZ5YzJsdmJqMGlNUzR3SWlCbGJtTnZaR2x1WnowaVZWUkdMVGdpSUhOMFlXNWtZV3h2Ym1VOUltNXZJajgrUENFdExVTlBUVkJNUlZSRlgxTk1TVU5GVWw5SFVrOVZVQzB0UGp4VFRFbERSVkpmUjFKUFZWQStQRWRTVDFWUUlHZHliM1Z3VG5WdFltVnlQU0l3SWlCemJHbGpaWEpIY205MWNFeGhZbVZzUFNKSGNtOTFjQ0F4SWlCemJHbGpaWEpIY205MWNFOXlaR1Z5UFNJd0lpQnpiR2xqWlhKSGNtOTFjRk5wZW1VOUlqQWlJSE5zYVdObGNrZHliM1Z3YUdsa1pUMGlabUZzYzJVaUx6NDhMMU5NU1VORlVsOUhVazlWVUQ0PTwvUHJvcGVydHk+DQogICAgICAgIDxQcm9wZXJ0eSBuYW1lPSJlbmFibGVQcmV2aWV3IiB0eXBlPSJqYXZhLmxhbmcuQm9vbGVhbiI+dHJ1ZTwvUHJvcGVydHk+DQogICAgPC9PYmplY3Q+DQo8L1Jvb3Q+DQo= -*Do not delete or modify the comments above ENGINE INT CACHE SET ON SET PAGE-NUM=NOLEAD SET HTMLENCODE=OFF SET ARGRAPHENGINE=JSCHART SET EMBEDHEADING=ON SET GRAPHDEFAULT=OFF
-DEFAULTH &WF_TITLE='WebFOCUS Report'; GRAPH FILE BI_SALES_PLAN_NEW -* Created by Info Assist for Graph SUM BI_SALES_PLAN_NEW.DOLLAR_MEASURES.AOP_REVENUE AS 'AOP Rev Tgt' Gross_Sales AS 'Net Sales' COMPUTE CTR/I4=LAST CTR + 1 ; NOPRINT COMPUTE LAG_1/D12.2=LAST Gross_Sales ; NOPRINT COMPUTE Lag_2/D12.2=LAST LAG_1 ; NOPRINT COMPUTE LAG_3/D12.2=LAST Lag_2 ; NOPRINT COMPUTE LAG_4/D12.2=LAST LAG_3 ; NOPRINT COMPUTE AVER/D12.2=IF CTR LT 4 THEN 0 ELSE ( Gross_Sales + LAG_1 + Lag_2 + LAG_3 + LAG_4 )/5 ; AS '5 Day Avg' BY BI_SALES_PLAN_NEW.MISC_DATE_ATTRIBUTES.FULL_DATE WHERE BI_SALES_PLAN_NEW.CURRENT.CURRENT_MONTH EQ 1 OR 2; WHERE BI_SALES_PLAN_NEW.PRODUCT_SUMMARY.BUSINESS_UNIT_CODE EQ 'C'; WHERE BI_SALES_PLAN_NEW.PART_ATTRIBUTES.PRODUCT_FORM_CODE EQ 'R'; HEADING "FY 2020 Daily Sales Trend" " " " " ON GRAPH PCHOLD FORMAT JSCHART ON GRAPH SET VZERO OFF ON GRAPH SET AUTOFIT ON ON GRAPH SET GRWIDTH 1 ON GRAPH SET UNITS &WF_STYLE_UNITS ON GRAPH SET HAXIS &WF_STYLE_WIDTH ON GRAPH SET VAXIS &WF_STYLE_HEIGHT ON GRAPH SET LOOKGRAPH BAR ON GRAPH SET AUTOFIT ON ON GRAPH SET STYLE * *GRAPH_SCRIPT setPieDepth(0); setPieTilt(0); setDepthRadius(0); setPlace(true); setCurveFitEquationDisplay(false);
I don't think that solution will work in my situation. I have a bar chart that shows each date of the month across the bottom with the sales of each day as the bar. I want to take the Saturday and Sunday values and roll them into the Friday values. So for the month of March it should show 3/2 (Monday), 3/3 (Tuesday), 3/4 (Wednesday), 3/5 (Thursday), 3/6 (Friday+Saturday+Sunday), 3/9 (Monday), 3/10 (Tuesday), 3/11 (Wednesday), 3/12(Thursday), 3/13 (Friday+Saturday+Sunday), etc. I don't think what you suggested would produce what I need.
Originally posted by Tony A: So redefine the value of BI_SALES_PLAN_NEW.MISC_DATE_ATTRIBUTES.FULL_DATE to the previous Friday if the date is a Saturday or Sunday.