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 result grid like this and I would like to select the rows where the last column value (variation) are the same for the same client. For example, in this case, I want to select the lines concerning the clients 44101 and 49747 in order to put them in red. Is there a way to make that?
SET ASNAMES=ON
TABLE FILE JERENY
SUM CNT.DST.VAR AS SAMEV
BY CLIENT
WHERE TOTAL CNT.DST.VAR EQ 1
ON TABLE HOLD AS SAMEVAR FORMAT FOCUS INDEX CLIENT
END
JOIN CLIENT IN JERENY TO CLIENT IN SAMEVAR AS J
TABLE FILE JERENY
PRINT VAR SAMEV NOPRINT
BY CLIENT BY PRODUCT
ON TABLE SET STYLE *
TYPE=DATA, COLOR=RED, WHEN=SAMEV EQ 1, $
ENDSTYLE
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
TABLE FILE MYTAB
SUM
MIN.VARIATION NOPRINT
MAX.VARIATION NOPRINT
COMPUTE SPREAD/P12.2 = MAX.VARIATION - MIN.VARIATION ; NOPRINT
BY CLIENT
PRINT
PRODUCT
VARIATION
BY CLIENT
WHERE TOTAL SPREAD EQ 0;
END
This MIN/MAX/SPREAD approach works only for a numeric field; Danny's CNT.DST. method does not have that restriction.
On the other hand, if VARIATION is a floating-point field, identical displayed values may have slightly different underlying internal values. Then CNT.DST.VARIATION would treat them as differing and drop them from the report, whereas the P-format for SPREAD -- which rounds a "nearly zero" computed spread to zero -- will ignore the fuzz and render the expected result.This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Your approach is better and with the following you also take care of numeric and alpha:
TABLE FILE MYTAB
SUM
MIN.VARIATION NOPRINT
MAX.VARIATION NOPRINT
COMPUTE SPREAD/I1 = IF MAX.VARIATION EQ MIN.VARIATION THEN 0 ELSE 1; NOPRINT
BY CLIENT
PRINT
PRODUCT
VARIATION
BY CLIENT
WHERE TOTAL SPREAD EQ 0;
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006