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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
grouping rows
 Login/Join
 
Silver Member
posted
I have an access database that is data from audits done on pc's. The program dumps the data into one large table.

The columns I'm working with are the PC name and the Software installed. One PC has several different software packages installed.

I've written defines for the office packages
DEFINE FILE EZAUDIT
ACCESS/A3=
IF EZAUDIT.EXE_DLL EQ 'msaccess.exe'
THEN 'YES' ELSE 'NO';
EXCEL/A3=
IF EZAUDIT.EXE_DLL DQ 'excel.exe'
then 'YES' ELSE 'NO;

Doing this works but I get 19 rows of NO's and the one Yes

How can I get this to be just one row like below

PCNAME ACCESSS EXCEL
pc1 yes no
pc2 yes yes
pc3 no no

Thanks so much
 
Posts: 45 | Registered: March 18, 2005Report This Post
Guru
posted Hide Post
Is this what you want:
DEFINE FILE CAR
SEDAN/I1= IF BODYTYPE EQ 'SEDAN' THEN 1 ELSE 0;
ROADSTER/I1= IF BODYTYPE EQ 'ROADSTER' THEN 1 ELSE 0;
COUPE/I1= IF BODYTYPE EQ 'COUPE' THEN 1 ELSE 0;
HARDTOP/I1 = IF BODYTYPE EQ 'HARDTOP' THEN 1 ELSE 0;
END
-RUN

TABLE FILE CAR
SUM
COMPUTE SEDAN/A3 = IF SEDAN GE 1 THEN 'YES' ELSE 'NO';
COMPUTE ROADSTER/A3 = IF ROADSTER GE 1 THEN 'YES' ELSE 'NO';
COMPUTE COUPE/A3 = IF COUPE GE 1 THEN 'YES' ELSE 'NO';
COMPUTE HARDTOP/A3 = IF HARDTOP GE 1 THEN 'YES' ELSE 'NO';
BY CAR
END
-RUN
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Silver Member
posted Hide Post
Thank you that is exactly what I needed.
 
Posts: 45 | Registered: March 18, 2005Report This Post
Virtuoso
posted Hide Post
Ginny,

Instead of using a whole bunch of COMPUTES and DEFINEs, try the following.

The key is to set the NODATA value to the word NO and to use the ACROSS sort on your EZAUDIT.EXE_DLL field.

DEFINE FILE CAR
THEYES/A3='YES';
END
TABLE FILE CAR
SUM THEYES
BY COUNTRY
ACROSS SEATS
ON TABLE SET NODATA NO
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Ginny, as mickey says, the cool thing about focus is that you can sum alphabetic fields, which you can't do in a microsoft app or a lesser app
SUM ACCESS EXCEL BY PC
ought to work just fine using your initial set of definitions




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders