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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] cnotation; referencing columns and Across

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] cnotation; referencing columns and Across
 Login/Join
 
Gold member
posted
Lets say I have
  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
 
Posts: 92 | Registered: July 31, 2015Report This Post
Expert
posted Hide Post
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, 2005Report This Post
Gold member
posted Hide Post
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
 
Posts: 92 | Registered: July 31, 2015Report This Post
Guru
posted Hide Post
quote:
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...


Not worked in cube so far, however just here to say that after holding a file, you can refer a columns using E01, E02 ...


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Virtuoso
posted Hide Post
Nicholas,
Welcome to the Forum. Please update your signature with version of WF etc.
quote:

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

Beware when you reformat a field within the TABLE request: for each reformatted field you will have 2 internal fields and this impacts the C-notation.


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, 2006Report This Post
Gold member
posted Hide Post
Will do.

Interesting, I think I was running into that. Thanks for the heads up.


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
 
Posts: 92 | Registered: July 31, 2015Report This Post
Gold member
posted Hide Post
 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
 
Posts: 92 | Registered: July 31, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] cnotation; referencing columns and Across

Copyright © 1996-2020 Information Builders