Rounding the total in BIP report - obiee

I see total like below in one of my BIP report.
Can I restrict the value to 2 digit after decimal.
In this example: 174264.87. I tried to find the option

You can do it with column properties and click data format tab

Related

Perform an OR operation on same field from multiple rows SSRS

I am a beginner trying to achieve a simple operation in SSRS using Visual Studio 2019. I have a query which returns a table as follows
ID | Name | Married
1 | Jack | Y
2 | Jack | N
The number of records might vary depending on the number of results. On the report, I want to display only the field 'Married' once. The value of the field will be determined using an OR operation, i.e. if the field 'Married' is 'Y' for any one record, I want to display a 'Y' on the report.
Assuming the Values are either Y or N, you should be able to use something like
=MAX(Fields!Married.Value)
If you report is grouped by, for example, Name then this will give you the MAX value within each group which is probably what you want.
If this does not help, edit your question and show
Your report design
Row Group panel plus details of grouping
A larger sample of data
Expected results from that sample data

Cognos report number formatting into 1 decimal form

I have two different reports in Cognos.
Whereas in both the reports I have the field called "%Target".
In the report 1 the field is directly coming from db and in the report 2 the field is formulated.
My question is for e.g. if a value is 98.47% (directly coming from db) in report 1 where after applying formatting it give me the rounded value as 98.5% but however in report 2 (where the field is calculated e.g. A/B) this value is populated as 98.4%
Can anyone please explain why this happening.
However I tried using ceiling function. But nothing is working on the report.

How do you show all rows with missing fields in Crystal Reports?

I'm struggling with Crystal Reports suppressing rows whenever I add a field that some rows may not have data in.
I've been able to fix some of the rows and make them show by using the formula:
if not isnull({field}) then {field} else "Arbitrary string to make row display"
This at least fills in the absent field with something and displays the row.
Do I really have to try and identify every field that may have incomplete data for some rows? Or is there some global method to make all rows show no matter what?
Something like: If isnull(ANYTHING) then " "?
you can do right click on the field, then under suppress, click the formula icon beside it and you can input there the conditions.
You can try the following in report options:
Convert Database NULL values to Default
Convert Other NULL values to Default.
This is hidden in File > Report Options. I have used Convert Database NULL Values to default to show 0's instead of blanks for null valued summaries

Crystal Reports Number formatting whole number and decimals

I am using VS2010 and Crystal reports plug-in and getting a value from stored procedure.
The values on this field are whole numbers and some of the numbers do have decimals.
Col 1
-----
42
25,725
5.22
When I right-click and format object. I am unable to achieve this. If I enable decimal it is displaying
42.00
25,725.00
5.22
How can I achieve the format that I have mentioned. I appreciate your support.
I tried the following formula:
//FieldOne is float
//Probably don't need the else.
If InStr(ToText({proc1;1.FieldOne}),".") > 0 THEN
Truncate({Proc1;1.FieldOne},2)
Else
Truncate({Proc1;1.FieldOne})
I am getting a "string is required here." error
When you right-click on the field and chose Format Field, click on the Number tab and then on customize. Create a formula in the Decimals option to not show a decimal if there is no "." in the value and to show 2 decimals if there is a "." in the value.
There are number of options when you will select Format Object:
and Within Custom Style we have;

Oracle spool Number rounding

I am calculating sum of all sales order (by multiplying quantity and price of a sales order - assume one sale order has only one item and using the sum function) in SQL query and I am spooling the output to a CSV file by using spool C:\scripts\output.csv.
The numeric output I get is truncated/rounded e.g. the SQL output 122393446 is made available in CSV as 122400000.
I tried to google and search on stackoverflow, but I could not get any hints about what can be done to prevent this.
Any clues?
Thanks
I think it is a xls issue.
Save as xls.
format column -> number with 2 decimals for example.
Initially I thought it might have something to do with the width of the number format which normally is 10 (NUMWIDTH) in sqlplus, but your result numeric width is 9, so that can not be the problem. Please check your query if you use a numeric type that doesn't have the required precission, and thus makes inexact calculations.

Resources