Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Number of Cars by Sales Ranges
Go
New
Search
Notify
Tools
Reply
  
[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, 2013Reply With QuoteReport 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.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6215 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport 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 8105 on Windows
 
Posts: 33 | Registered: May 28, 2008Reply With QuoteReport 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, 2015Reply With QuoteReport 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: 1941 | Location: Tel Aviv, Israel | Registered: March 23, 2006Reply With QuoteReport 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, 2013Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Number of Cars by Sales Ranges

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.