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     Comparision of records

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Comparision of records
 Login/Join
 
<NAG>
posted
Hi,
I have a list of items which have prices for the last three months. Now i need to compare the prices for each iten between these three months and i need to find if the price has Increased or Decreased or Nochnage of that item.
Is there any way to achive this.
Thanks
Nag
 
Report This Post
Virtuoso
posted Hide Post
NAG,

Try the following:

TABLE FILE CAR
PRINT SALES
COMPUTE UPDWN/A3=IF (SALES GT LAST SALES) THEN 'UP' ELSE 'DWN';
BY COUNTRY
BY CAR
BY MODEL
BY BODYTYPE
END


Thanks!

Mickey

FOCUS/WebFOCUS 1990 - 2011
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Silver Member
posted Hide Post
Can you describe what your MFD looks like?
 
Posts: 36 | Registered: December 21, 2005Report This Post
Expert
posted Hide Post
Another quick and d!rty example:

SET ASNAMES=ON
SET HOLDLIST=PRINTONLY
SET HOLDFORMAT=ALPHA
-RUN

TABLE FILE GGORDER
SUM QUANTITY AS 'ORDER'
BY PRODUCT_CODE
ACROSS ORDER_DATE
WHERE ORDER_DATE GE '10/01/97'
WHERE ORDER_DATE LE '12/01/97'
ON TABLE HOLD AS HORDER
END
-RUN

TABLE FILE HORDER
PRINT 
E02
E03
COMPUTE DIFF1/D6 = E03 - E02;
E04
COMPUTE DIFF1/D6 = E04 - E03;
END
-RUN


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
<NAG>
posted
Hi
here is the example of my data

Item Month Price
A1 1 10
A1 2 7.5
A1 3 5
A2 1 5
A2 2 6
A2 3 10
A3 1 10
A3 2 10
A3 3 10
. . .
. . .
. . .
. . .
. . .
F3 3 10

Here my ItemImproving is: A2
ItemDecresing is: A1
ItemNochange is: A3

Thanks
Nag
 
Report This Post
Expert
posted Hide Post
Nag, take a look at my example - it should work for you.


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
Silver Member
posted Hide Post
Nag: If A1 in month 3 was 11 what would you do?
 
Posts: 36 | Registered: December 21, 2005Report This Post
<NAG>
posted
Hi act 12345

That record will be ignored
 
Report This Post
Virtuoso
posted Hide Post
quote:
Item Month Price
A1 1 10
A1 2 7.5
A1 3 5
A2 1 5
A2 2 6
A2 3 10
A3 1 10
A3 2 10
A3 3 10
. . .
. . .
. . .
. . .
. . .
F3 3 10

Here my ItemImproving is: A2
ItemDecresing is: A1
ItemNochange is: A3

quote:

Nag: If A1 in month 3 was 11 what would you do?

quote:

Hi act 12345
That record will be ignored


So from what you say, then
Item Month Price
A1 1 10
A1 2 7.5
A1 3 11
A2 1 5
A2 2 6
A2 3 10
A3 1 10
A3 2 10
A3 3 10
. . .
. . .
. . .
. . .
. . .
F3 3 10

ItemImproving is: A2
ItemNochange is: A3
ItemIgnore: A1


That I don't understand.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report 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     Comparision of records

Copyright © 1996-2020 Information Builders