-
Notifications
You must be signed in to change notification settings - Fork 238
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
On multicurrency organization the calculations with currency fields are made like not currencies #217
Comments
Have you seen this #57? |
Yes I saw it, but is still calculating it wrong. My case has a lot of currencies involved: I have an object Sales product with a formula (currency) to calculate the price of 1 MB (I sell internet connections) and a lookup to a country custom object. I want to do an average of the price of the MB in the countries. My organization currency is EUR But If I do the calculations in the developer console:
The results are: Converting this quantities to CLP (Country currency) Calculating the average: The average should be 1212188.30 CLP instead the 115771 CLP the rollup calculates |
Thanks for the detail here, i'll be sure to do it justice when i can focus on it, hopefully soon! 👍 |
Sorry for the delay on this one, i've flagged it as a priority item to review. |
Hi @xhiena, i've been staring at this again. I have myself encountered issues where the SOQL functions don't work as per my own hand calculations. The differences have been minor compared to yours though. In the end Salesforce support did convince me, in my case, it was supported and and aspect of how internally aggregate queries and currency conversion works. It seems like you have boiled this down to the specific SOQL, which is basically what the tool is doing. So i'm not sure what else the tool could do to help if the platform is not returning the figures you expect. My only advice, is to raise a case with Salesforce Support and provide your explanation above, and like me hopefully one way or another, you will at least perhaps get some kind of explanation from them on the logic behind it, which may or may not help you. Sorry i cannot do anything more here and also for the huge delay in getting back to you. Good luck! 👍 |
If I do a forecast and I have products in EUR and USD For example: 100 EUR and 100 USD (90.62 EUR) the SUM is 200 EUR instead 190.62 EUR
The text was updated successfully, but these errors were encountered: