IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Total and subtotal
Go
New
Search
Notify
Tools
Reply
  
-star Rating Rate It!  Login/Join 
<eab>
Posted
Hello, everyone!

I neeed to create summary report for students by 4 regions. 3 regions has to be by city and student and last one only summary line. Also I asked to do subtotals by region and total for first 3 region and total for all of them.

SUM
STUDENT
compute fields
BY REGION NOPRINT RECOMPUTE MULTILINES AS 'Total for '
BY CITY
BY STDNT_NUM

What I have to code to supress students lines for region EQ '04' and get total for regions '01' '02' '03'?
 
Reply With QuoteEdit or Delete MessageReport This Post
<Pietro De Santis>
Posted
Something like:



SUM
STUDENT
compute fields
BY REGION NOPRINT
BY CITY
BY STDNT_NUM
ON REGION RECOMPUTE MULTILINES AS 'Total for '
WHEN REGION NE '04'
END

This message has been edited. Last edited by: <Mabel>,
 
Reply With QuoteEdit or Delete MessageReport This Post
<eab>
Posted
Yes, I tried this but I have no total for Region 04, and it not helps with total for first 3 regions
 
Reply With QuoteEdit or Delete MessageReport This Post
<WFUser>
Posted
If I understand you correctly, you want to sort by region and city only if region in not 4 and you want just a total for region 4. Would something like this work?

DEFINE FILE filename
SORTFLD/An = IF REGION NE 4 THEN REGION | CITY ELSE REGION;
END
TABLE FILE filename
SUM fields
BY SORTFLD
SUBTOTAL
 
Reply With QuoteEdit or Delete MessageReport This Post
 Previous Topic | Next Topic powered by eve community  
 

IB - Developer Center    Forums  Hop To Forum Categories  FOCUS/WebFOCUS    Total and subtotal

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