I created an anlysis report in pentaho user console. I had some revenue and profit measurements in the data set. So I need to add the currency symbol to those values. But in pentaho I can only add $ mark. How can I change to other currency symbols as I am interest in?
In the Analyzer Reports simply you can change the currency symbol by editing the format of the field. Change the format of the field into currency and type the symbol you want.
Click on the filed name.
Select Column name and Format.
Change the format to currency
Type/ paste the currency symbol you want in the Symbol text box.
Click OK.
Now it will change the currency type only for that report.
Or you can change the default currency symbol of the Analyzer report by following the below steps.
Stop BA server
Go to ...\server\biserver-ee\pentaho-solutions\system\analyzer
Edit analyzer.properties.
Change renderer.currency.symbol attribute from $ to desired currency.
Save the changes.
Re-start BA server.
Related
I have this formula in value of text element. how can I format the amount to format this $#,##0
=IF([amount]=0;"N/A" ;"$"+[amount])
I want the amount should be formatted in report. how can i change the expression to get that.
I have a report containing a currency text filed. I want to separate it's number by coma, every 3 digits. so I changed it's Text Format from it's Properties.
It's OK in normal display, but when I export this report to a PDF file, then it's currency numbers doesn't display well.
Please help me about this problem.
You can use formats.
For example you can fill your text field with:
Price is: {Format("{0:C}", MyPrice)}
I want to add the running total field value and formula field value("Openbalnce"), the sum should be assigned to another formula field("Total").
In the formula editor of formula field("Total"),I have given as:
{runningtotalvalue} + {formula field value("Openbalnce")}
The Formula field ("Openbalnce")value is assigned in code behind and running total field value is directly assigned.
It shows the error
"A number,date or time,date etc is required here".
Please help me out of this.
This Is Working
({runningtotalvalue}) + CDBL({#"Openbalnce"})
I created a report in a VB.Net application and I'm using the Crystal Reports Viewer control to display it. The report is grouped by a field that's an integer datatype. I've been successful in formatting the field to a string so that it displays properly on the report (i.e., without any thousdand separators or decimals).
The problem now is that when I open the Group Tree in the viewer, the field is being treated as an integer (with the thousand separators). I've attempting following the solutions in these articles article1, article2, article3, but they only address formatting the display of the field (which I'm not having a problem with).
So how to I format the display of an integer as string on the Group Tree, not the report itself?
Go into the Group Expert, select your group, and hit "Options". Select the "Options" tab, and then mark the checkbox that says "Customize Group Name Field" and then select "Use Formula as Group Name" and finally enter the formula totext({table.field_you_are_grouping_on},0,'') This will change group's appearance everywhere, including in the tree.
Note that the second parameter to totext controls the number of decimals and the third parameter controls the thousands-separator (empty string, in our case).
Create a formula for the group like this:
ToText({table.field},0).
It will remove any thousands separators. I use this all the time.
I have problem in generate report. I use crystal report 8.5 with vb.net 2008,what I want is when I generate report it will appear red value, if the value is more or less than actual value else it will give default value but when I put this code it give me wrong result
If {Intake.wheatType} = {Spec.WheatType} AND
{Intake.HB43} >={Spec.M_Min} AND{Intake.HB43} >={Spec.M_Max} Then
Red
Else
DefaultAttribute
this report is related with two tables, which is table Spec and table Intake. Could anyone help/teach me how to fix this problem
When determining whether a value is between a minimum and maximum, the logic will be:
Is the value greater than the minimum and is the value less than the maximum?
Actually you can create a Formula Field for that,
From Field Explorer, right click Formula Field
A popup window will appear, type the name of the formula you want.
in the Formula Editor insert you custome formula
Code:
If {Intake.wheatType} = {Spec.WheatType} AND {Intake.HB43} >={Spec.M_Min} AND {Intake.HB43} >={Spec.M_Max} Then
Red
Else
DefaultAttribute
Then click OK. Drag the newly created field on your report. And that's it.
For more info, see this: Adding Formula Field