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] HOw to use condition on percentage column.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] HOw to use condition on percentage column.
 Login/Join
 
Member
posted
Is there anyway to use condition on percentage column like greater than or equal 80% then display like that.

AprCount (%)
------------

22.23%
82.93%
46.44%
92.99%
56.87%
89.01%
93.12%

my code is like this
TABLE FILE WAIVDB
SUM
COMPUTE REG_CNT_PCT/D6.2%= IF (HWVRGRP EQ 'Regular' OR 'Denial') THEN (REG / TOT_CNT) * 100 ELSE 0;
AS 'AprCount(%)'
BY HDOC NOPRINT

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 15 | Registered: August 13, 2018Report This Post
Virtuoso
posted Hide Post
Raju

The WHERE TOTAL statement can be used against COMPUTED fields.


TABLE FILE WAIVDB
SUM
COMPUTE REG_CNT_PCT/D6.2%= IF (HWVRGRP EQ 'Regular' OR 'Denial') THEN (REG / TOT_CNT) * 100 ELSE 0;
AS 'AprCount(%)'
BY HDOC NOPRINT
WHERE TOTAL REG_CNT_PCT GT 80


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Member
posted Hide Post
quote:
TOTAL REG_CNT_PCT GT 80


I AM GETTING BELOW ERROR

(FOC732) COMPUTED FIELDS CAN ONLY BE REFERENCED IN A WHERE TOTAL
 
Posts: 15 | Registered: August 13, 2018Report This Post
Member
posted Hide Post
It is working. thank you. Please ignore the above error.

How do I retrieve highest to lowest values in AprCount column.

Thank you for you help.
 
Posts: 15 | Registered: August 13, 2018Report This Post
Virtuoso
posted Hide Post

TABLE FILE WAIVDB
SUM
COMPUTE REG_CNT_PCT/D6.2%= IF (HWVRGRP EQ 'Regular' OR 'Denial') THEN (REG / TOT_CNT) * 100 ELSE 0;
AS 'AprCount(%)'
BY TOTAL HIGHEST COMPUTE REG_CNT_PCT/D6.2%= IF (HWVRGRP EQ 'Regular' OR 'Denial') THEN (REG / TOT_CNT) * 100 ELSE 0; NOPRINT
BY HDOC NOPRINT
WHERE TOTAL REG_CNT_PCT GT 80


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Member
posted Hide Post
I want to display HDOC and AprCount columns. My requirement is display HDOC and percentage in Aprcount which is highest to lowest.
 
Posts: 15 | Registered: August 13, 2018Report This Post
Member
posted Hide Post
Sort BY HDOC and highest to lowest values in AprCount
 
Posts: 15 | Registered: August 13, 2018Report This Post
Virtuoso
posted Hide Post
Take the NOPRINT off of the end of BY HDOC


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Member
posted Hide Post
Thank you all. It worked fine.
 
Posts: 15 | Registered: August 13, 2018Report 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] HOw to use condition on percentage column.

Copyright © 1996-2020 Information Builders