Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Calculated measure not summing in matrix correctly

Hi, can someone advise why this isn't summing correctly? I've tried ISINSCOPE as well but didn't work. This is the formula       
  • Daniel29195's avatar
    1 year ago

    Anonymous 

    try the following : 

     

    var ds = 

    addcolumns( 

    values(strategic_asse_class ) , 

    "calc" , 

    if( ... , abs ( ... ) , ... , abs(... ) 

    ) 

     

    return 

    sumx ( ds , [calc] ) 

     

    the idea is that you need to iterate over the dimension in rows. 

    let me know if this helps.