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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Recap
 Login/Join
 
Platinum Member
posted
TABLE FILE PSA_WBKPMDP
SUM

COMPUTE V_TGT_STR_ADJ_HR_Q/P20C = IF TGT_STR_ADJ_HR_Q NE 0 THEN TGT_STR_ADJ_HR_Q ELSE 0; AS ' ,Store,Adjusted,Hours'

COMPUTE V_STRADJHRS_NA/A3 = IF V_TGT_STR_ADJ_HR_Q EQ 0 THEN 'n/a' ELSE '' ; AS ''

FOR
TIME_MEMBER
RECAP MTH = 0;AS '&V_MNTH_YEAR' OVER
'&V_WK1' LABEL R1 AS '&V_LABEL_WK1' OVER
'&V_WK2' LABEL R2 AS '&V_LABEL_WK2' OVER
'&V_WK3' LABEL R3 AS '&V_LABEL_WK3' OVER
'&V_WK4' LABEL R4 AS '&V_LABEL_WK4' OVER

RECAP MTH/P20C = R1+R2+R3+R4;

MTH(1)/P20C = IF R4(2) EQ 0 THEN 0 ELSE IF R3(2) EQ 0 THEN 0 ELSE IF R2(2) EQ 0 THEN 0 ELSE IF R1(2) EQ 0 THEN 0 ELSE ELSE R4(2)+R3(2)+R2(2)+R1(2)) ;
MTH(2)/A3 = IF MTH(1) EQ 0 THEN 'n/a' ELSE '' ;
END


In the above example, though MTH(1) is being calculated and dispalyed correctly, while calculating MTH(2), MTH(1) is always zero.Irrespective of the value of MTH(1), MTH(2) is always being set to the value 'n/a'.
What is the datatype of MTH(1) so that MTH(2) can be obtained correctly.


Using WF 7.1.7/Dev Studio
 
Posts: 189 | Location: Boston, MA | Registered: July 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders