Returns a new copy of the BreakdownSet divided by another BreakdownSet. There must be a corresponding Breakdown for each Breakdown in both sets for this function to succeed. The metadata Breakdowns within the set are divided and the results combined into a new BreakdownSet. 

The following example illustrates how two related metrics can be divided and, as long as they contain the same metadata, the Breakdown of these metrics can also be divided to calculate a meaningful new BreakdownSet for the resulting output value. 

var actual = metrics.getLatest('Time Recorded');
var estimated = metrics.getLatest('Estimated Time');
var accuracy = 100.0 * (actual.value() / estimated.value());
var breakdown = actual.breakdown().divide(estimated.breakdown()).scale(100);

return {
    value : accuracy,
    breakdown : breakdown
Did this answer your question?