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     [SOLVED] Number of Cars by Sales Ranges

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Number of Cars by Sales Ranges
 Login/Join
 
Gold member
posted
Hopefully this is a simple question with solution! How can I build this report using the CAR file? Other than building 4 hold files and merging them together, I can't figure out how to do this! Thanks in advance!

Sales Category # of Cars
Less than $5K 6
5K - 10K 2
10K - 30K 3
Over 30K 2

EDIT: I can't get the above table to format correctly on here. It's just a two column report, column 1 is Sales Category, column 2 is # of Cars.

This message has been edited. Last edited by: Joel Elscott,


WebFOCUS 8.2.03
z/OS
 
Posts: 66 | Registered: May 20, 2013Report This Post
Expert
posted Hide Post
Check out BY LOWER n PLUS OTHERS IN-GROUPS-OF


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Silver Member
posted Hide Post
This is something that I learned from the previous webminar.

TABLE FILE CAR
SUM CNT.CAR
BY SALES AS 'RANGE' ROWS 0 TO 5000 AS '0 TO 5K' OVER 5000 TO 10000 AS '5K - 10K' OVER 10000 TO 30000 AS '10K - 30K' OVER 3000 TO 100000 AS 'Over 30K'
END 


Thanks,
Pku

Focus, WebFocus 8201 on Windows
 
Posts: 43 | Registered: May 28, 2008Report This Post
Platinum Member
posted Hide Post
Try this ,

TABLE FILE CAR
SUM 
     CNT.CAR.COMP.CAR AS '# of Cars'
BY  CAR.BODY.SALES AS 'Sales Category' IN-RANGES-OF 5001 TOP 30000
ON TABLE NOTOTAL
END

 


OR
 TABLE FILE CAR
SUM
     CNT.CAR.COMP.CAR AS '# of Cars'
 
FOR  CAR.BODY.SALES  AS 'Sales Category'
0 TO 5000 AS '0 - 5K' OVER
 5000 TO 10000 AS '5K - 10K' OVER 
10000 TO 30000 AS '10K - 30K' OVER
 3000 TO 90000   AS 'Over 30K'
END
ON TABLE NOTOTAL
END
 
 

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


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 2015Report This Post
Virtuoso
posted Hide Post
And this:
  
DEFINE FILE CAR
SALERANGE/I2=IF SALES LT 5000 THEN 1 ELSE
             IF SALES LT 10000 THEN 2 ELSE
             IF SALES LT 30000 THEN 3 ELSE 4;
SALERANGEDISPLAY/A12=DECODE SALERANGE(
1 'Less than 5K'
2 '5K - 10K'
3 '10K - 30K'
4 'Over 30K');
END
TABLE FILE CAR
SUM CNT.CAR AS '# of Cars'
BY SALERANGE NOPRINT
BY SALERANGEDISPLAY AS 'Sales Category'
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
Gold member
posted Hide Post
Pku, Chaudhary and Danny - Brilliant solutions, thank you so much for your time and assistance. Much appreciated! This forum never ceases to amaze me.

Tags
Ranges
Account Values Ranges
Banded Ranges
Sales Range
Decode
Count
.CNT

This message has been edited. Last edited by: Joel Elscott,


WebFOCUS 8.2.03
z/OS
 
Posts: 66 | Registered: May 20, 2013Report 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     [SOLVED] Number of Cars by Sales Ranges

Copyright © 1996-2020 Information Builders