Focal Point
[CLOSED] Display of data in thousands and millions.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3957013276

August 22, 2014, 02:56 PM
Cyril Joy
[CLOSED] Display of data in thousands and millions.
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.
August 25, 2014, 09:28 AM
Cyril Joy
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.
August 25, 2014, 10:53 AM
SWES
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
August 25, 2014, 02:51 PM
Francis Mariani
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
August 25, 2014, 03:39 PM
Cyril Joy
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.
August 25, 2014, 03:47 PM
Francis Mariani
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
August 25, 2014, 04:12 PM
Cyril Joy
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.