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     Avoid nesting of Across

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Avoid nesting of Across
 Login/Join
 
Gold member
posted
I want display item count across item status and location in the same report.
i.e.,

Expected:
Status 1 status 2 status3 location1 location 2
1 2 0 9 8


But when I apply across on item, across fields are being nested.
i.e.,

Actual:

location1 location2
status 1 status 2 status 3 status 1 staus 2
val1 val2 val3 val4 val5

How do I avoid it? or How can I get the expected report?
 
Posts: 77 | Registered: December 22, 2004Report This Post
Guru
posted Hide Post
What does the data look like in the table you are trying to do the across on?

Does it look like this:
Column1 Column2
Value 1 Status 1
Value 2 Status 2
Value 3 Status 3
Value 4 Location 1
Value 5 Location 2
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
The data in the table is as follows

Item1 status1 location1
Item2 status1 location2
Item3 status2 location2
Item4 status3 location1

The expected output is

status1 status2 status3 location1 location2
2 1 1 2 2
 
Posts: 77 | Registered: December 22, 2004Report This Post
Guru
posted Hide Post
DEFINE FILE tablename
STAT1/I5 = IF STATUS EQ 'status1' THEN 1 ELSE 0;
STAT2/I5 = IF STATUS EQ 'status2' THEN 1 ELSE 0;
STAT3/I5 = IF STATUS EQ 'status3' THEN 1 ELSE 0;
LOC1/I5 = IF LOCATION EQ 'location1' THEN 1 ELSE 0;
LOC2/I5 = IF LOCATION EQ 'location2' THEN 1 ELSE 0;
END
TABLE FILE tablename
SUM STAT1 STAT2 STAT3 LOC1 LOC2
END
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Gold member
posted Hide Post
Status and Location information are coming from relevant mater tables.

I don't want to hardcode any values in my report.

Can someone help me?
 
Posts: 77 | Registered: December 22, 2004Report This Post
Gold member
posted Hide Post
Status and Location information are coming from relevant mater tables.

I don't want to hardcode any values in my report.

Can someone help me?
 
Posts: 77 | Registered: December 22, 2004Report This Post
Gold member
posted Hide Post
Status and Location information are coming from relevant mater tables.

I don't want to hardcode any values in my report.

Can someone help me?
 
Posts: 77 | Registered: December 22, 2004Report This Post
Guru
posted Hide Post
Try this:
SET ASNAMES = ON
TABLE FILE CAR
SUM
RETAIL_COST
MAX.CAR/A20 AS 'ACROSS_FIELD'
BY CAR NOPRINT
ON TABLE HOLD AS HOLD1 FORMAT ALPHA
END
-RUN

TABLE FILE CAR
SUM
RETAIL_COST
MAX.COUNTRY/A20 AS 'ACROSS_FIELD'
BY COUNTRY NOPRINT
ON TABLE HOLD AS HOLD2 FORMAT ALPHA
END
-RUN

TABLE FILE HOLD1
SUM
RETAIL_COST
ACROSS ACROSS_FIELD
MORE
FILE HOLD2
END
-RUN

Hope this is what your looking for.
Note the COUNTRY field and CAR field need to be the same size for this to work.
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Gold member
posted Hide Post
Thank you. Really forum helped me a lot.

Thank you all.
 
Posts: 77 | Registered: December 22, 2004Report 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     Avoid nesting of Across

Copyright © 1996-2020 Information Builders