Forum Discussion

Em3dream123's avatar
Em3dream123
Frequent Visitor
3 years ago
Solved

Matrix add each total for each Value in row

Hi all,   I am trying to get the SUM of each value of rows but I have no idea on how to do it. Example for what I have : Example for what I wish : Thank you for you help   
  • audreygerred's avatar
    3 years ago

    Hello! Create an explicit measure for SL an TN (Basically, take whatever measure you have for the values now and create two more - one that is based on it being filtered to SL and one for TN: 

    SL = CALCULATE(
        [YourMeasure],
        'TableName'[CATEGORY_GRP] IN { "SL" }
    )
     
    then,
     
    TN = CALCULATE(
        [YourMeasure],
        'TableName'[CATEGORY_GRP] IN { "TN" }
    )
     
    Once these are ready, remove the measure you have now and add these two, then go to the formatting for the matrix, expand the values section, expand options and switch values to rows:

    Here is one I did with some sample data to show how it would look: