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     Reporting in TREE structure

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Reporting in TREE structure
 Login/Join
 
Gold member
posted
Hi,

I have data like

Country has states which further have cities. The Metrics to be displayed is say Population.
But Country/State/City should all come in a "same column" and behave in a tree structure. that is, on clicking country I should get states below it, on clicking a state I get cities below it. All this while corresponding Population for that country/state/city comes as second column.
COL1 COL2
+ US 1000
+ UK 500

on clicking US

-US 1000
+CA 200
+LA 800
+UK 500

on clicking CA

-US 1000
-CA 200
-city1 50
-city2 150
+LA 800
+UK 500

i should get rolled up data as i move from city2 to US, and drill down data on vice versa.

Acordian Reports i have tried but it is not the solution because i may have other sorting fields before i reach the Population col.
And also that accordian reports do not display the metrics/measures till we reach the last sort field.

So my reqmt is
1) getting all levels in 'same column'.
2) Rolled Up/Drilled Down to get displayed on click of +/-.

Regards,
CD
 
Posts: 78 | Registered: December 11, 2005Report This Post
Virtuoso
posted Hide Post
I don't know what your software version is, but this is exactly what an Accordian report in WebFOCUS does. It's available in 7.x. You can also perform similar functionality using FML in WebFOCUS, but it's not very interactive. Last, but not least, there is an additional product called Active Reports that produces HTML-based reports that are highly interactive for end-users, re-sorts, expand, add columns, etc. (of course availabe for an extra fee) We are actually thinking of moving in this direction.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
Step 1 - Getting all the levels in the same column

-SET &ECHO=ALL;

SET MSG        = ON
SET ASNAMES    = ON
SET HOLDLIST   = PRINTONLY
SET HOLDFORMAT = ALPHA
-RUN

TABLE FILE GGSALES
SUM
DOLLARS/D12M
COMPUTE GEO/A20 = 'US';
COMPUTE SORT/A100 = 'US';
ON TABLE HOLD AS H001
END
-RUN

TABLE FILE GGSALES
SUM
DOLLARS/D12M
COMPUTE GEO/A20 = REGION;
COMPUTE SORT/A100 = 'US' | REGION;
BY REGION NOPRINT
ON TABLE HOLD AS H002
END
-RUN

TABLE FILE GGSALES
SUM
DOLLARS/D12M
COMPUTE GEO/A20 = ST;
COMPUTE SORT/A100 = 'US' | REGION | ST;
BY REGION NOPRINT
BY ST     NOPRINT
ON TABLE HOLD AS H003
END
-RUN

TABLE FILE GGSALES
SUM
DOLLARS/D12M
COMPUTE GEO/A20 = CITY;
COMPUTE SORT/A100 = 'US' | REGION | ST | CITY;
BY REGION NOPRINT
BY ST     NOPRINT
BY CITY   NOPRINT
ON TABLE HOLD AS H004
END
-RUN

TABLE FILE H001
PRINT DOLLARS
BY SORT NOPRINT
BY GEO
MORE
FILE H002
MORE
FILE H003
MORE
FILE H004
END


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
Expert
posted Hide Post
... or a really simple way -
TABLE FILE GGSALES
SUM DOLLARS
BY REGION
SUM DOLLARS
BY REGION
BY ST
SUM DOLLARS
BY REGION
BY ST
BY CITY
SUM DOLLARS
BY REGION
BY ST
BY CITY
BY STCD
SUM DOLLARS
BY REGION
BY ST
BY CITY
BY STCD
BY PRODUCT
ON TABLE SET EXPANDABLE ON
END
-RUN

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Master
posted Hide Post
These are really great examples! I'm gonna bookmark this post.

A note on the active reports, it only allows a limited amount of data.


Prod: Single Windows 2008 Server running Webfocus 7.7.03 Reporting server Web server IIS6/Tomcat, AS400 DB2 database.
 
Posts: 611 | Registered: January 04, 2007Report This Post
Expert
posted Hide Post
I have WF 5.3.2 so no EXPANDABLE for me.


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
Expert
posted Hide Post
ohhhh
that IS a good example. thanks T.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report 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     Reporting in TREE structure

Copyright © 1996-2020 Information Builders