Actions
Bug #23845
closedFWG: Staging: Web App: Dashboard: Port. 52 W L Rise should never be 0.
Start date:
February 25, 2025
Due date:
% Done:
0%
Estimated time:
Tags:
Description
On Dashboard screen the Port. 52 W L Rise should never be 0. Here share the note why it is happening?
Updated by Dinesh Pedagada about 1 month ago
- Portfolio 3-Month Price Movement, the calculation compares the average latest value and average past value based on the most recent date and the date 90 days prior. If data from 90 days before is unavailable, the past value is considered zero, which leads to division by zero, resulting in an infinite or undefined value. To mitigate this, if the computed value is infinite, undefined, or zero, it is displayed as zero. If valid data is available in the database, the calculation is performed as per the formula, and the resulting value is displayed.
- Portfolio 52-Week High Drop, the formula fetches the maximum extValueCr over the last 365 days. If the maximum value is greater than zero, the calculation proceeds normally, and the result is displayed. However, if the maximum value is zero, dividing the total sum by zero would result in an infinite or undefined value. To handle this, if the computed value is infinite, undefined, or zero, it is displayed as zero to ensure accuracy and consistency in the results.
- Portfolio 52-Week Low Rise, the formula identifies the minimum extValueCr over the last 365 days. If the minimum value found is zero, dividing the total sum by zero results in an infinite or undefined value. To prevent this issue, if the computed value is infinite, undefined, or zero, it is displayed as zero. However, if a valid minimum value greater than zero exists, the calculation proceeds as per the formula, and the computed result is displayed accordingly.
Updated by Dinesh Pedagada about 1 month ago
- Status changed from New to In Progress
Actions
Go to top