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     [SOLVED] SHOW with BY HIERARCHY

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] SHOW with BY HIERARCHY
 Login/Join
 
Gold member
posted
I am trying to use the method outlined here:
http://www.informationbuilders...letter/10-2/04_harry

Does anyone know the proper syntax to use or have an example I can work off of?

I want to use SHOW TO BOTTOM. I take it you have to specify a field value and SHOW TO BOTTOM off of that. The link talks about using a WHEN filter, which i am not familiar with.

would it be something like:

TABLE FILE DM
SUM 
     Numbers
BY  GL_Account_Finance_Tree_name HIERARCHY WHEN GL_Account_Finance_Tree_name EQ 'Revenue' SHOW TO BOTTOM
BY  Date_Calendar_Month NOPRINT 




Thanks!

This message has been edited. Last edited by: Nicholas Spyrison,


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
 
Posts: 92 | Registered: July 31, 2015Report This Post
Virtuoso
posted Hide Post
You must search on knowledge base:
SHOW with BY HIERARCHY


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
well, that's embarrassing.

But now I am getting an the following errors:
(FOC11207) ERROR IN THE QUERY:
(FOC11309) "IF" AND "WHERE" TESTS DO NOT COMBINE WITH "BY HIERARCHY": [GL Account].[Finance Tree]

Documentation code:
BY PRODUCTS_CAPTION HIERARCHY
WHEN PRODUCTS_CAPTION EQ 'LAPTOP'; 

My code:
BY  GL_Account_Finance_Tree_name HIERARCHY
WHEN GL_Account_Finance_Tree_name EQ 'Total Property Revenues';


Error really seems to contradict the the whole idea of the documentation.

any thoughts?


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
 
Posts: 92 | Registered: July 31, 2015Report This Post
Virtuoso
posted Hide Post
The only thing that I can think of it's that your TABLE FILE xxxxxxx is not requesting against a cube.
quote:

When you issue a request against a cube, some of the requirements and features available depend on the type of hierarchy you are reporting against.

Maybe someone else will have a different answer.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
quote:
The only thing that I can think of it's that your TABLE FILE xxxxxxx is not requesting against a cube.


it's against a cube, parent-child,
BY GL_Account_Finance_Tree_name HIERARCHY
works as expected without the WHEN.


_____
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
Does the WF metadata for the cube table have the appropriate keywords to identify the hierarchy? Was the WF metadata (master, access) created using the reporting server create sysnonym option?


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
yes and yes.

DIMENSION=[GL Account], CAPTION='GL Account', $
HIERARCHY=[GL Account].[Finance Tree], CAPTION='Finance Tree', HRY_DIMENSION=[GL Account], HRY_STRUCTURE=RECURSIVE, $
HIERARCHY=[GL Account].[Drr Flag], CAPTION='Drr Flag', HRY_DIMENSION=[GL Account], $
HIERARCHY=[GL Account].[Long Flag], CAPTION='Long Flag', HRY_DIMENSION=[GL Account], $
HIERARCHY=[GL Account].[Major Type], CAPTION='Major Type', HRY_DIMENSION=[GL Account], $
HIERARCHY=[GL Account].[Ops Accounts Flag], CAPTION='Ops Accounts Flag', HRY_DIMENSION=[GL Account], $
...etc


_____
WF 8.1.04
Win 7// Windows Server 2012 R2
SASS OLAP Cube
 
Posts: 92 | Registered: July 31, 2015Report This Post
Member
posted Hide Post
For BY HIERARCHY to work, you need to reference the field which has the PROPERTY=PARENT_OF, associated with it.


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 24 | Registered: July 01, 2014Report This Post
Gold member
posted Hide Post
That didn't work either, Frowner. Also have the BY HIERARCHY working fine in the absence of the WHEN statement.

Code:
BY GL_Account_Finance_Tree_parent HIERARCHY
WHEN GL_Account_Finance_Tree_parent EQ '[GL Account].[Finance Tree].&|[1050504]';

Master:
FIELDNAME=GL_Account_Finance_Tree_parent, USAGE=A143, ACTUAL=A143,
MISSING=ON,
TITLE='Finance Tree Parent Unique Name',
REFERENCE=GL_Account_Finance_Tree, PROPERTY=PARENT_OF, $


_____
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
I have DEFINE using IF GL_Account_Finance_Tree_name and a WHERE GL_Account_Finance_Tree_name. This alone opperates just fine.

If I add the WHEN then I get the (FOC11309) "IF" AND "WHERE" TESTS DO NOT COMBINE WITH "BY HIERARCHY". I can then comment out the DEFINE and WHERE and have the WHEN run correctly.

It seems like you can either have (IF and WHERE) or WHEN, but not both...

___
Edit: I can use IF, WHERE TOTAL, and WHEN together.

This message has been edited. Last edited by: Nicholas Spyrison,


_____
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
Good to know there's a decent solution to this.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     [SOLVED] SHOW with BY HIERARCHY

Copyright © 1996-2020 Information Builders