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] Question Where/If by summed column

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Question Where/If by summed column
 Login/Join
 
Gold member
posted
Hi, i can do this in the SQL side however i'm curious if i can do this from the Report Painter/Synonym side.

I have a list of people (Family name) and a field (e.g. has car) which marks a 0 (No) and 1 (Yes). In my report i have that has car columned summed and grouped by person. I would like to have it so that it only shows people which have that car column summed as 0 or less than 1. How am i able to do this

I find it hard to believe that i cant get this going but i know i'm missing something?

Note that i did try to create where/if clause on that has car column however that is not correct as a person (family) can have more than 1 car and the where looks at per record and not the grouped by sum.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFocus 8.02, SQL Server 2008r2
 
Posts: 51 | Registered: November 30, 2012Report This Post
Virtuoso
posted Hide Post
maybe a silly question but I suppose you have the been reading all the documentation and did some basic training?

to give you the short answer...yes you can...

table file xxx
sum "hascar"
by familyname
where hascar lt 1
end

and all this in capitals of course




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Expert
posted Hide Post
It may need to use the WHERE TOTAL phrase:

TABLE FILE XXX
SUM HASCAR
BY FAMILYNAME
WHERE TOTAL HASCAR LT 1
END


Look at "Creating Reports With Report Painter" > "Selecting Data":

"WHERE TOTAL enables you to select records based on the aggregate value of a field. For example, on the sum of field values, or on the average of field values."


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Gold member
posted Hide Post
Hi Frank,

Thanks for your reply, yes i did basic training and the solution you provided does not work because of the note i mentioned.

Example:
Name make has car
John Doe acura 1
Jane Doe null 0
jack johnson vw 1
web focus null 0

i want it to show
name does not have car
name make has car
web focus null 0

your solution when i applied it which is what i was doing as well just hides john doe's car of acura but shows jane doe (however i need it grouped by family) which is not correct because the family as a car so they should not show up. this is where i was saying that i believe the where/if looks at each row however can i do a where/if on a group?

I hope that clarifies my question?


WebFocus 8.02, SQL Server 2008r2
 
Posts: 51 | Registered: November 30, 2012Report This Post
Gold member
posted Hide Post
Hi Francis,

This is exactly what i was looking for!!! Smiler thank you, i was trying to do this in report painter and couldn't figure it out.

its the Total that did it Smiler Thanks again you save me some time!


WebFocus 8.02, SQL Server 2008r2
 
Posts: 51 | Registered: November 30, 2012Report 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] Question Where/If by summed column

Copyright © 1996-2020 Information Builders