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  iWay Software Product Forum on Focal Point    [SOLVED] How to culculate the rank value in DataMicgrator?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] How to culculate the rank value in DataMicgrator?
 Login/Join
 
Member
posted
I want transform the data to target table, and add a culculate column, the column value is the rank depent other 2 column.For example:
Source data:
US Product1 100
US Product2 200
UK Product1 300
UK Product2 400

The result data:

US Product1 100 1
US Product2 200 2
UK Product1 300 1
UK Product2 400 2

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


WebFOCUS 8001
Windows7
Output: PDF, Excel, COMT
 
Posts: 6 | Registered: June 29, 2011Report This Post
Platinum Member
posted Hide Post
Sort by country/bt product by value and create a Counter with a COMPUTE using "LAST" to reset the counter.
TABLE FILE CAR
SUM
SALES
COMPUTE COUNTER/I1 = IF COUNTRY EQ LAST COUNTRY THEN COUNTER +1 ELSE 1;
BY  COUNTRY
BY CAR
END

This message has been edited. Last edited by: Alex,


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Report This Post
Member
posted Hide Post
Thanks, Alex
Can I get more meaningful result about the "RANK":

This is the default result:


------------------------------------------------------
COUNTRY-------CAR------------SALES------COUNTER
ENGLAND-------JAGUAR-------12000------1
-------------------JENSEN--------0-----------2
-------------------TRIUMPH------0-----------3
FRANCE---------PEUGEOT------0-----------1
ITALY------------ALFA-ROMEO-30200------1
-------------------MASERATI-----0------------2
JAPAN------------DATSUN------43000------1
-------------------TOYOTA-------35030------2
W-GERMANY---AUDI-----------800---------1
-------------------BMW-----------80390-----2
------------------------------------------------------

I-want-the-result-like:
------------------------------------------------------
COUNTRY-------CAR------------SALES------COUNTER
ENGLAND-------JAGUAR-------12000------1
-------------------JENSEN--------0-----------2
-------------------TRIUMPH------0-----------2
FRANCE---------PEUGEOT------0-----------1
ITALY------------ALFA-ROMEO-30200------1
-------------------MASERATI-----0------------2
JAPAN------------DATSUN------43000------1
-------------------TOYOTA-------35030------2
W-GERMANY---BMW-----------80390---------1
-------------------AUDI-----------7800-----2
------------------------------------------------------

This message has been edited. Last edited by: jay sun,


WebFOCUS 8001
Windows7
Output: PDF, Excel, COMT
 
Posts: 6 | Registered: June 29, 2011Report This Post
Virtuoso
posted Hide Post
There is an inbuilt solution:
TABLE FILE CAR
SUM         SALES
BY               COUNTRY
RANKED 
BY HIGHEST TOTAL SALES   NOPRINT
BY               CAR
END


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
It's great, Thanks.


WebFOCUS 8001
Windows7
Output: PDF, Excel, COMT
 
Posts: 6 | Registered: June 29, 2011Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [SOLVED] How to culculate the rank value in DataMicgrator?

Copyright © 1996-2020 Information Builders