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 am merging three hold files together via the MORE command. They are organized into three date groupings via an ACROSS statement. I only want to display the ADHERENCE and DEN values for the third Date grouping which is COLID 3. Does anyone have an idea of how to do this?
Thanks in advance!!! Code below:
TABLE FILE _DST_STAR
SUM
NUM
COMPUTE ADHERENCE/D12.2% = NUM/DEN;
DEN
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 1;
BY TOTAL COMPUTE COLTXT/A20V = 'Previous Year';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2017/12/31'
ON TABLE HOLD AS 'PREV_YEAR'
END
TABLE FILE _DST_STAR
SUM
NUM
COMPUTE ADHERENCE/D12.2% = NUM/DEN;
DEN
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 2;
BY TOTAL COMPUTE COLTXT/A20V = 'Monthly Trend';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2018/04/30'
ON TABLE HOLD AS 'MONTH_TREND'
END
TABLE FILE _DST_STAR
SUM
NUM
COMPUTE ADHERENCE/D12.2% = NUM/DEN;
DEN
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 3;
BY TOTAL COMPUTE COLTXT/A20V = 'Current YTD';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2018/10/02'
ON TABLE HOLD AS 'YTD_TREND'
END
TABLE FILE PREV_YEAR
HEADING
""
SUM
NUM
DEN
ADHERENCE
BY COLID
BY COLTXT
BY DATECALENDARKEY
BY MEASUREFULLNAME
ON TABLE HOLD AS 'COMB_TREND'
MORE
FILE MONTH_TREND
MORE
FILE YTD_TREND
END
TABLE FILE COMB_TREND
SUM
NUM
DEN
ADHERENCE
ACROSS DATECALENDARKEY AS ''
ACROSS COLID
ACROSS COLTXT AS ''
BY MEASUREFULLNAME
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
END
Maybe I am missing something but in the last secion of your code just don't refrence the NUM field...
TABLE FILE COMB_TREND SUM DEN ADHERENCE ACROSS DATECALENDARKEY AS '' ACROSS COLID ACROSS COLTXT AS '' BY MEASUREFULLNAME ON TABLE PCHOLD FORMAT HTML ON TABLE SET PAGE-NUM NOLEAD ON TABLE SET HTMLEMBEDIMG ON ON TABLE SET HTMLCSS ON END
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, 2005
What Brandon wants is to have Num only displayed in the first two ACROSS value (PY and Mth Trend) without ADHERENCE and DEN but in the third ACROSS value (YTD) he wants NUM, ADHERENCE and DEN displayed.
I posted a solution in its other discussion.
ACROSS will always display all measures (SUM field) by default. See your other post for a technic how to accomplish your need.
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: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
This ended up being a work around via clever algebraic field manipulation thanks to Martin.
Here's the code I came up with. I created another variable similar to COLID for the sum fields called SUMID. Then those get organized under each COLID .
TABLE FILE _DST_STAR
SUM
COMPUTE COLVAL/D12 = NUM;
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 1;
BY TOTAL COMPUTE SUMID/I1 = 1;
BY TOTAL COMPUTE COLTXT/A20V = 'Previous Year';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2017/12/31'
ON TABLE HOLD AS 'PREV_YEAR'
END
TABLE FILE _DST_STAR
SUM
COMPUTE COLVAL/D12 = NUM;
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 2;
BY TOTAL COMPUTE SUMID/I1 = 2;
BY TOTAL COMPUTE COLTXT/A20V = 'Monthly Trend';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2018/04/30'
ON TABLE HOLD AS 'MONTH_TREND'
END
TABLE FILE _DST_STAR
SUM
COMPUTE COLVAL/D12 = NUM;
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 3;
BY TOTAL COMPUTE SUMID/I1 = 3;
BY TOTAL COMPUTE COLTXT/A20V = 'Current YTD';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2018/10/02'
ON TABLE HOLD AS 'YTD_TREND_NUM'
END
TABLE FILE _DST_STAR
SUM
COMPUTE COLVAL/D12 = DEN;
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 3;
BY TOTAL COMPUTE SUMID/I1 = 4;
BY TOTAL COMPUTE COLTXT/A20V = 'Current YTD';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2018/10/02'
ON TABLE HOLD AS 'YTD_TREND_DEN'
END
TABLE FILE _DST_STAR
SUM
COMPUTE COLVAL/D12 = NUM/DEN*100;
BY _DST_STAR.DST_DIMDATE.DATECALENDARKEY
BY _DST_STAR.DST_DIMQUALITYMEASURE.MEASUREFULLNAME
BY TOTAL COMPUTE COLID/I1 = 3;
BY TOTAL COMPUTE SUMID/I1 = 5;
BY TOTAL COMPUTE COLTXT/A20V = 'Current YTD';
WHERE _DST_STAR.DST_DIMDATE.DATECALENDARKEY EQ '2018/10/02'
ON TABLE HOLD AS 'YTD_TREND_ADH'
END
Now all I gotta do is play around with the formatting of the single sum field but I feel comfortable manipulating an Alphanumeric format.