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] Derived Facts

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Derived Facts
 Login/Join
 
Silver Member
posted
Hi,

I want an advice on how to deal with the Derived Facts?

Suppose I have a table sales_daily with the below facts

trancount
volume
profit
loss

I want to create derived facts like ytd_volume,ytd_trancount,lastyear_volume,lastyear_trancount...etc

According to the Datawarehouse Guide the author suggests to create these derived facts in the BI Tool and the tool will take care for you.

My question is what is the best practise in WebFOCUS? Do you we need to create these derived facts in the SYNONYM or create them in the database itself?

All of you advice is really appreciated.

Thanks,
Amarnath

This message has been edited. Last edited by: Kerry,


WebFOCUS 7.6.7
Unix
Excel/Html
 
Posts: 46 | Registered: January 27, 2009Report This Post
Expert
posted Hide Post
I hope you have a date in your table. You would use a DEFINE or COMPUTE to calculate the new facts/fields that you desire. For instance:

YTD_VOLUME/I9=IF year-of-date EQ CURRENT_YEAR THEN VOLUME ELSE 0;

Note that this is all pseudo-code and you will have to contruct your date values that you would use in your calculations.

Hope this helps.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
Thanks for the reply Ginny.

We can do that but I want a suggestion on the best practise. Is it better to do in WF or in the Database?


WebFOCUS 7.6.7
Unix
Excel/Html
 
Posts: 46 | Registered: January 27, 2009Report This Post
Expert
posted Hide Post
For the situation you have described, since you have to compare to a date, do it in the report request, not the metadata.

If you are asking whether you should put it in a view in the data base, certainly that would be better if you can do that. That gives WF less work to do.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report 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] Derived Facts

Copyright © 1996-2020 Information Builders