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] Data ranges in ACROSS-value drilldowns

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Data ranges in ACROSS-value drilldowns
 Login/Join
 
Virtuoso
posted
I'm having a problem with a report where several items are grouped in categories, with the headings for those categories drilling down to a next report. I'm not getting the correct values in my drilldown links though; instead of the minimum and maximum values of the entire column, I only get those of the first row per column.

My report is similar to this:
DEFINE FILE CAR
	GROUP/A15 = IF SEATS LT 2 THEN '0 - 2'
				ELSE IF SEATS FROM 2 TO 3 THEN '2 - 4'
				ELSE IF SEATS FROM 4 TO 5 THEN '4 - 6'
				ELSE '6+';
	RANK/I2	= IF COUNTRY EQ 'JAPAN' OR 'FRANCE' THEN 1 ELSE 2;
END
TABLE FILE CAR
SUM
	MIN.SEATS
	MAX.SEATS
ACROSS GROUP
BY RANK NOPRINT
BY COUNTRY
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, FOCEXEC=X(MINSEATS=N3 MAXSEATS=N4),$
END


If you'd use "View source" in the resulting HTML page and look at the link for the second across value, you will see that it has &MINSEATS=5&MAXSEATS=5.
I really need that to be the minimum and maximum values in the column, instead of those of just the first row. In the above case: &MINSEATS=4&MAXSEATS=5.

Is there a way to get those in the across-link?

I get the impression this should be trivial, but I don't see how to do it.

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


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Expert
posted Hide Post
Here's some code that partially works, perhaps it will give you ideas... The Min/Max for the second group works, but the first group is 0/0 perhaps due to the RANK causing missing values...

SET ASNAMES=ON
SET HOLDFORMAT=ALPHA
SET HOLDLIST=PRINTONLY

DEFINE FILE CAR
GROUP/A15 =
IF SEATS LT 2 THEN '0 - 2' ELSE
IF SEATS FROM 2 TO 3 THEN '2 - 4' ELSE
IF SEATS FROM 4 TO 5 THEN '4 - 6' ELSE
'6+';
RANK/I2 = IF COUNTRY EQ 'JAPAN' OR 'FRANCE' THEN 1 ELSE 2;
END

TABLE FILE CAR
SUM
MIN.SEATS AS MINSEATS
MAX.SEATS AS MAXSEATS
BY GROUP

PRINT
SEATS
BY GROUP
BY RANK
BY COUNTRY

ON TABLE HOLD AS H001
END
-RUN

?FF H001

TABLE FILE H001
SUM
MINSEATS NOPRINT
MAXSEATS NOPRINT

MIN.SEATS
MAX.SEATS

ACROSS GROUP
BY RANK NOPRINT
BY COUNTRY

ON TABLE SET STYLE *
TYPE=ACROSSVALUE, FOCEXEC=X(MINSEATS=MINSEATS MAXSEATS=MAXSEATS),$
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
Virtuoso
posted Hide Post
How about reverting to our godd friend McGuyver?
  
-* File wep02.fex
JOIN BLANK WITH SEATS IN CAR TO BLANK IN FSEQ AS M_
DEFINE FILE CAR
    BLANK/A1 WITH SEATS = ' ';
	GROUP/A15 = IF SEATS LT 2 THEN '0 - 2'
				ELSE IF SEATS FROM 2 TO 3 THEN '2 - 4'
				ELSE IF SEATS FROM 4 TO 5 THEN '4 - 6'
				ELSE '6+';
	RANK/I2	= IF COUNTER EQ 1 THEN 0 ELSE IF COUNTRY EQ 'JAPAN' OR 'FRANCE' THEN 1 ELSE 2;
    XCOUNTRY/A10=IF COUNTER EQ 1 THEN 'TOTAL' ELSE COUNTRY;
END
TABLE FILE CAR
WHERE COUNTER LE 2;
SUM
	MIN.SEATS
	MAX.SEATS
ACROSS GROUP
BY RANK NOPRINT
BY XCOUNTRY
ON TABLE SET STYLE *
TYPE=ACROSSVALUE, FOCEXEC=DUMMY(MINSEATS=N3 MAXSEATS=N4),$
END


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
  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] Data ranges in ACROSS-value drilldowns

Copyright © 1996-2020 Information Builders