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.
SUM
Num1
Num2
COMPUTE cNum3/D12.2 = C1 + C2;
ACROSS Flavor
CNOTATION works and C1, C2 point back to Num1, Num2.
is there an "ANOTATION" that allows me to refer back to the different levels of an Across field?This message has been edited. Last edited by: <Kathryn Henning>,
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
What is it that you're attempting to do here, with different levels of an Across field?
You can refer to the columns by the field name instead of the notations (C#, N#,etc). Or, C#(#), where the 1st # is the column and the 2nd# is the occurrence.
You can post more code, using an IB sample file, within the </> brackets as seen above.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005
akin to the above case; I compute a subtraction of 2 fields. I have:
SUM
Ledger_Amount/D12.2B AS 'Actual'
Budget_Amount/D12.2B AS 'Budget'
COMPUTE Variance/D12.2B = Ledger_Amount - Budget_Amount;
COMPUTE Variance_Pct/D12.2% = 100 * ( ( Ledger_Amount - Budget_Amount ) / Ledger_Amount ); AS '% Variance'
BY GL_Account_Finance_Tree_name HIERARCHY
BY Date_Calendar_Month NOPRINT
ACROSS LOWEST Date_Date_Calculation
ulation EQ 'MTD' OR 'QTD' OR 'YTD';
in another case I want to compute subtractions across levels of the across field. ie) Ledger_Amount this year - Ledger_Amount last year.
SUM
Ledger_Amount
COMPUTE Test1/D12.2B = C1 - 1;
BY GL_Account_Finance_Tree_name HIERARCHY
BY Date_Calendar_Month
WHERE Date_Date_Calculation EQ 'MTD' OR 'MTD LY' OR 'QTD' OR 'QTD LY';
Because I am using a cube I run into issues when I try to define/compute IF Date_Date_Calculation EQ 'MTD' THEN Ledger_Amount ELSE 0
namely, it forces Date_Date_Calculation to act as a by field regardless of its absence in the code. If I use a hold file and Sum to account for the resulting zeros then I lose the Structure of the GL_Account_Finance_Tree_name HIERARCHY...
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube
C#(#), where the 1st # is the column and the 2nd# is the occurrence.
whats is second occurrence referring to? a different level of across? If so this may work otherwise I think I will have to play around with the SASS ENGINE SET.
_____ WF 8.1.04 Win 7// Windows Server 2012 R2 SASS OLAP Cube