Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Display of data in thousands and millions.
Go
New
Search
Notify
Tools
Reply
  
[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, 2004Reply With QuoteReport 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, 2004Reply With QuoteReport 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, 2011Reply With QuoteReport 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, 2005Reply With QuoteReport 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, 2004Reply With QuoteReport 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, 2005Reply With QuoteReport 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, 2004Reply With QuoteReport This Post
  Powered by Social Strata  
 

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-2018 Information Builders, leaders in enterprise business intelligence.