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     [CLOSED] Display of data in thousands and millions.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Display of data in thousands and millions.
 Login/Join
 
Platinum Member
posted
Hi,

I have a requirement to show the data in thousands/millions. When we show the same in excel report, it should show the actual value in the formula bar and thousands/millions value in the excel cell.Currently we are converting the numbers manually to thousands/millions value by dividing the number with 1000/1000000.

When we use excel formula, the output will display the division in the formula bar (number/1000). How do we get the actual number alone in the formula bar? I do not want to use template and macro for doing this.

For Example: If I convert a number say '1234.5678' to thousand display as '1.23' using a function, it should display '1234.5678' in the formula bar in excel sheet, but the excel cell should be '1.23'.

TABLE FILE CAR
PRINT RETAIL_COST
COMPUTE DCOST/D12.2=DEALER_COST/1000;
ON TABLE PCHOLD FORMAT EXL07 FORMULA
END

Thanks for any suggestion!

Cyril Joy.

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


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
Hi,

Any quick solution for this please?

If I convert a number say '1234.5678' to thousand display as '1.23' using a function/format, it should display '1234.5678' in the formula bar in excel sheet and the excel cell should be '1.23'. Is there any easy way to achieve this?

Thanks,
Cyril Joy.


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Platinum Member
posted Hide Post
Cyril, I don't think there's a solution for this, and even if there is, it won't be quick or easy. You're passing down values to Excel, you cannot pass the same field with two types of formatting.

May I suggest:

TABLE FILE CAR
PRINT RETAIL_COST
COMPUTE DCOST/D12.2=DEALER_COST/1000;
COMPUTE DCOST2=DCOST;
ON TABLE PCHOLD FORMAT EXL2K
END


I know it's not perfect, but at least you can hide/reveal the DCOST2 column with a click and you still have the exact numbers at hand?


WebFOCUS 8105m
Windows 7, All Outputs

Member of the Benelux Usergroup
 
Posts: 198 | Location: Amsterdam | Registered: August 24, 2011Report This Post
Expert
posted Hide Post
Just use the thousands column for non-excel reports and use the regular column for Excel reports. This is easy to control using Dialogue Manager, but only if you're not using the GUI to create the report.

TABLE FILE CAR
PRINT RETAIL_COST
-IF &WFFMT EQ 'EXL2K' GOTO COLUMN_EXCEL;

COMPUTE DCOST/D12.2=DEALER_COST/1000; AS 'Cost'
-GOTO COLUMN_END

-COLUMN_EXCEL
DCOST AS 'Cost'

-COLUMN_END

ON TABLE PCHOLD FORMAT EXL2K
END


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
Platinum Member
posted Hide Post
Thanks for updates.

My requirement is slightly different. I use Excel Formula as the output format. When the report is exported to excel, the values should be displayed in 1000's, but when an individual cell is clicked, it should display the actual value in the formula bar.

Below code is achieving the same, but I do not want the /1000 along with the number in the formula. IS there a way to eliminate that (/1000)?

TABLE FILE CAR
PRINT RETAIL_COST
COMPUTE DCOST/D12.2=DEALER_COST/1000;
ON TABLE PCHOLD FORMAT EXL07 FORMULA
END

Thanks!


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report This Post
Expert
posted Hide Post
Cyril, I don't think that can be done in Excel.


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
Platinum Member
posted Hide Post
This is possible with excel template and some macro, but I do not want to use macro in the code. I will check with IBI product division if there is a solution.



Thanks!


Regards,
Cyril Joy.

WF Production 8008 on Linux.
 
Posts: 143 | Location: Rochester,NY. | Registered: August 20, 2004Report 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     [CLOSED] Display of data in thousands and millions.

Copyright © 1996-2020 Information Builders