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     Report Structure Problem

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Report Structure Problem
 Login/Join
 
Platinum Member
posted
Hi all,i have one requremnt like the below report here the difficulty is the model is not there in database and each country is seprate column (Measure)in the table, i tried with OVER but i didn't get the structure like belo report.
quote:
quote:


Model Country Cost Sales
Model1 Country1 $10000 $50
Country2 $15000 $40
Country3 $20000 $20
Model2 Country1 $20000 $30
Country2 $25000 $20
Country3 $10000 $10
Total Country1 $30000 $80
Country2 $40000 $60
Country3 $30000 $30





Thanks,
Kalyan.S
------------------------------------
WebFOCUS 7.1.4, Win XP SP2,
Oracle8i.
------------------------------------
 
Posts: 155 | Location: Bangalore. | Registered: January 24, 2006Report This Post
Expert
posted Hide Post
Hi Kalyan,

Please try the following suggestion:

Focexec:
DEFINE FILE MYTEMP                                       
CNT/I1 =CNT +1;                                          
IVAL/I1=EDIT(EDIT(COUNTRY,'$$$$$$$9'));                  
FLAG/I1=IF CNT  LE 1         THEN 1 ELSE                 
        IF IVAL LE LAST IVAL THEN 1 ELSE 0;              
XFLAG/I1=IF CNT  LE 1        THEN 1 ELSE                 
         IF IVAL LE LAST IVAL THEN XFLAG +1 ELSE XFLAG ; 
XMODEL/A8= 'MODEL' | EDIT(XFLAG);                        
END                                                      
TABLE FILE MYTEMP                                        
PRINT COUNTRY  COST SALES                                
BY XMODEL                                                
END


Data:
COUNTRY11000050
COUNTRY21500040
COUNTRY32000020
COUNTRY12000030
COUNTRY22500020
COUNTRY31000010
COUNTRY13000080
COUNTRY24000060
COUNTRY33000030

Master:
FILENAME=MYTEMP, SUFFIX=FIX,
FIELD=COUNTRY, ALIAS=ID, FORMAT=A8,A8,$
FIELD=COST , ALIAS=LN, FORMAT=P12Mc,A5,$
FIELD=SALES , ALIAS=FN, FORMAT=P12Mc,A2,$


Hope this helps. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 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     Report Structure Problem

Copyright © 1996-2020 Information Builders