-
Notifications
You must be signed in to change notification settings - Fork 395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"lakhs format" is not being applied correctly when used with aggregate functions. #1672
Comments
You are showing a little JS and you say that soem numbers are not formatted correctly. But it is not clear how this is connected. |
I think folks need a way to reproduce the problem---a small sample report---rather than a screenshot of a problem. (It seems strange to me (not having a clue about any of the details mind you) that the value is of type String rather than some numeric type for which numeric formatting would be applicable. |
Please download the sample RPT Design and sample excel file from our OneDrive link |
Without looking at the rptdesign (just the screenshot), I think it cannot make sense to use the If you want to calculate something, you need a number data type (in your case, However, the aggregation uses use In fact, when I develop invoice reports or similar reports where correct rounding and number formatting is really important, I do not use BIRT to calculate or format any numbers. Instead, I perform all the calculations and formatting at the SQL level. |
This topic is not a problem of BIRT this is a topic of the requirement solution of the report-developer. The best way would be that you use a aggregation function based on ytpe "float" and use the number format. But currently you try to much things at the same time. Additional on it I don't know why you try to use at script level every time to convert the value to a string format. |
Here we have a combination of 2 things. The second thing is really that you mixed up the stuff of the total in one aggregation field. With the fix you will be able to use a script at the onCreate method to format the values: |
The fix is merged to the master branch. |
The number format "lakhs format" represented by the pattern #,##,##,###.00 is not being applied correctly when used with aggregate functions.
The dataset rows are displaying correctly, but when it comes to aggregates, if there are no decimals available, it displays in a format like #,##,##,###
We are using the expression
--------------------------------------------------------The text was updated successfully, but these errors were encountered: