Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Matrix Sum of Rows

Hi,

 

I am trying to get the totals of my matrix rows. I have a 'Client Name' underneath the top 'Opportunity Name' row within my matrix. If I expand the matrix I get all the correct values for each client of the 'Opportunity', but I need the total for the top category (the opportunity name). Please see the photos below for better clarity:

After expanding:

 

Sq FT at the moment is a DAX which is SqFT = SELECTEDVALUE(Project[ProjectSize]). It is just the project size variable but I needed it as a DAX for reformatting purposes. Please let me know if any further information is needed, thanks.

3 Replies

  • olgad's avatar
    olgad
    Resident Rockstar

    Hi, turn on the row subtotals

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi olgad, it is still blank after turning it on

  • olgad's avatar
    olgad
    Resident Rockstar

    I am not sure, why cant it just be SUM(Project Size) and shall be selected value, but you can calculate as follows

    Measure=if(ISINSCOPE(Project[Project ]),  SqFT, Sum(Project[Project Size]))