Returns the BreakdownSet for this fact or null if no breakdown is available for the Fact.

// the latest Fact
var latest = metrics.get('critical issues').getLatest();

var breakdown = latest.breakdown();

console.log('The breakdown metadata for latest fact: %s', breakdown);

Use a specific breakdown to create a new KPI from an existing one:

// get the latest data for the unresolved issues
var issues = kpis.getLatest('Unresolved');

if (issues){
    var breakdown = issues.breakdown();
    if (breakdown){

        //return the number of Priority 1 issues
        return breakdown.valueOf('Priority', 'P1');
return 0;

Did this answer your question?