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.
I have a report with 7 columns and 1 by field, I would like to apply across for last 2 columns only. Across field is a month/year field. Is it possible to apply across only for selective columns? Thank you very much in advance.This message has been edited. Last edited by: FP Mod Chuck,
So, basically dealer_cost and retailer_cost should be available as split columns under each month(column) seperate
Car file code is like TABLE FILE CAR PRINT COUNTRY CAR MODEL BODYTYPE SEATS DEALER_COST RETAIL_COST BY COUNTRY END My actual code is like
TABLE FILE TABLENAME SUM SALES1 SALES2 SALES3 SALES4 SALES5 SALES6 SALES7 BY SORT1 END ACROSS column would be month field. Please let me know if i am making any sense. Regards Leela krishnaThis message has been edited. Last edited by: Leela Krishna,
-SET &ECHO=ALL;
-* File leela01.fex
DEFINE FILE CAR
SALES1/I6=SALES * RDUNIF('D4.2');
SALES2/I6=SALES * RDUNIF('D4.2');
SALES3/I6=SALES * RDUNIF('D4.2');
SALES4/I6=SALES * RDUNIF('D4.2');
END
TABLE FILE CAR
SUM
SALES
SALES1
SALES2
SALES3
SALES4
BY COUNTRY
SUM
RCOST
DCOST
BY COUNTRY
ACROSS SEATS
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, 2006
Waz, sorry for delay in response, It was more like this TABLE FILE CAR SUM SALES SALES1 SALES2 SALES3 SALES4 SALES5 SALES6 SALES7 BY COUNTRY END
I wanted to put an across by month, and I did it the way Danny-SRL mentioned in the next post. but I see month names one line above the columns COUNTRY,SALES1,SALES2,SALES3,SALES4,SALES5,SALES6,SALES7. I want to display them beside like this SALES1,SALES2,SALES3,SALES4,SALES5,JAN, FEB, MAR,APRIL. whereas SALES6,SALES7 should be displayed below each and every month. please let me know if there is way to achieve this? I am I making sense
quote:
Originally posted by Waz: Is it more like this ?
TABLE FILE CAR
PRINT
DEALER_COST
RETAIL_COST
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
ACROSS SEATS
END
Thanks for taking time to respond, Yes, I did it the same way, but I see month names one line above the columns COUNTRY,SALES1,SALES2,SALES3,SALES4,SALES5,SALES6,SALES7. I want to display them beside like this SALES1,SALES2,SALES3,SALES4,SALES5,JAN, FEB, MAR,APRIL. whereas SALES6,SALES7 should be displayed below each and every month. Is there a way to do this?
quote:
Originally posted by Danny-SRL: ... or more like this:
-SET &ECHO=ALL;
-* File leela01.fex
DEFINE FILE CAR
SALES1/I6=SALES * RDUNIF('D4.2');
SALES2/I6=SALES * RDUNIF('D4.2');
SALES3/I6=SALES * RDUNIF('D4.2');
SALES4/I6=SALES * RDUNIF('D4.2');
END
TABLE FILE CAR
SUM
SALES
SALES1
SALES2
SALES3
SALES4
BY COUNTRY
SUM
RCOST
DCOST
BY COUNTRY
ACROSS SEATS
END
With a couple of changes, assuming I understand your requirements.
DEFINE FILE CAR
SALES1/I6=SALES * RDUNIF('D4.2');
SALES2/I6=SALES * RDUNIF('D4.2');
SALES3/I6=SALES * RDUNIF('D4.2');
SALES4/I6=SALES * RDUNIF('D4.2');
MONTH/Mt = SEATS ;
END
TABLE FILE CAR
SUM
SALES
SALES1
SALES2
SALES3
SALES4
BY COUNTRY
SUM
RCOST AS SALES6
DCOST AS SALES7
BY COUNTRY
ACROSS MONTH
END
Leela, Is this what you want, or do you need a second line of titles?
-SET &ECHO=ALL;
-* File leela01.fex
DEFINE FILE CAR
SALES1/I6=SALES * RDUNIF('D4.2');
SALES2/I6=SALES * RDUNIF('D4.2');
SALES3/I6=SALES * RDUNIF('D4.2');
SALES4/I6=SALES * RDUNIF('D4.2');
SALES5/I6=SALES * RDUNIF('D4.2');
SALES6/I6=SALES * RDUNIF('D4.2');
MONTH/Mt=SEATS;
END
TABLE FILE CAR
BY MONTH
ON TABLE HOLD AS MN FORMAT ALPHA
ON TABLE SET HOLDLIST PRINTONLY
END
-RUN
-SET &HEAD='COUNTRY<+0>SALES<+0>SALES1<+0>SALES2<+0>SALES3<+0>SALES4';
-SET &MN=&LINES;
-REPEAT #GETMN FOR &I FROM 1 TO &MN;
-READFILE MN
-SET &HEAD=&HEAD || '<+0>' || &MONTH;
-#GETMN
TABLE FILE CAR
HEADING
"&HEAD"
SUM
SALES AS ''
SALES1 AS ''
SALES2 AS ''
SALES3 AS ''
SALES4 AS ''
BY COUNTRY AS ''
SUM
SALES5 AS ''
SALES6 AS ''
BY COUNTRY
ACROSS MONTH NOPRINT AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET ACROSSTITLE SIDE
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY, $
-REPEAT #COLMN FOR &I FROM 1 TO &MN;
-SET &ITEM=6 + &I;
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=&ITEM, COLSPAN=2, $
-#COLMN
ENDSTYLE
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, 2006
-SET &ECHO=ALL;
-* File leela01.fex
DEFINE FILE CAR
SALES1/I6=SALES * RDUNIF('D4.2');
SALES2/I6=SALES * RDUNIF('D4.2');
SALES3/I6=SALES * RDUNIF('D4.2');
SALES4/I6=SALES * RDUNIF('D4.2');
SALES5/I6=SALES * RDUNIF('D4.2');
SALES6/I6=SALES * RDUNIF('D4.2');
MONTH/Mt=SEATS;
END
TABLE FILE CAR
BY MONTH
ON TABLE HOLD AS MN FORMAT ALPHA
ON TABLE SET HOLDLIST PRINTONLY
END
-RUN
-SET &HEAD='COUNTRY<+0>SALES<+0>SALES1<+0>SALES2<+0>SALES3<+0>SALES4';
-SET &SHEAD=' <+0>';
-SET &MN=&LINES;
-REPEAT #GETMN FOR &I FROM 1 TO &MN;
-READFILE MN
-SET &HEAD=&HEAD || '<+0>' || &MONTH;
-SET &SHEAD=&SHEAD || '<+0>SALES5<+0>SALES6';
-#GETMN
TABLE FILE CAR
HEADING
"&HEAD"
"&SHEAD"
SUM
SALES AS ''
SALES1 AS ''
SALES2 AS ''
SALES3 AS ''
SALES4 AS ''
BY COUNTRY AS ''
SUM
SALES5 AS ''
SALES6 AS ''
BY COUNTRY
ACROSS MONTH NOPRINT AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET ACROSSTITLE SIDE
ON TABLE SET STYLE *
TYPE=HEADING, HEADALIGN=BODY, $
-REPEAT #COLMN FOR &I FROM 1 TO &MN;
-SET &ITEM=6 + &I;
TYPE=HEADING, LINE=1, OBJECT=TEXT, ITEM=&ITEM, COLSPAN=2, $
-#COLMN
TYPE=HEADING, LINE=2, OBJECT=TEXT, ITEM=1, COLSPAN=6, $
ENDSTYLE
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, 2006