Forum Discussion

goosefrabah's avatar
goosefrabah
Frequent Visitor
2 years ago
Solved

% of static parent value in matrix

In the 3rd column of my matrix, I need the child values of "t100" to be calculated as a % of the parent of "test 2".   The parent value of 7.67% is correct, but the first child should be (5.5/131.3...
  • goosefrabah's avatar
    goosefrabah
    2 years ago

    This set me on the right track. Here is the measure I am using, and its correct output:

     

    % of total (ignoring filters) =

    VAR _pct = DIVIDE( 'Fact'[t100], CALCULATE( [test 2], ALLSELECTED()))
    // 'test 2' is a simple measure that calculates a sum, ignoring visual level filters I have applied using ALL()
    RETURN

    IF( ISINSCOPE( 'Mapping Table2[Row2] ), _pct, DIVIDE('Fact'[t100], [test 2]))