Forum Discussion

emskikay's avatar
emskikay
New Member
8 years ago

How to subset a symmetric matrix

Hi,

I have a symmetrix matrix and I want to view a subset of it.  Say my full matrix has columns and rows A-Z.  These columns and rows are grouped.  Say Group1 has columns and rows A-E and Group2 has columns and rows F-K.  Group 3 may have columns and rows Q-S and Z.  A group will have different number of columns and rows.

 

I want to view a subset of the matrix by group.  I have a slicer with the list of groups that filters another slicer with the column names.  I can get it to filter the columns shown in the matrix.  But I can't get it to filter the rows.  How do I filter it by rows?  Any help would be appreciated.

 

 

 

 

2 Replies

  • v-ljerr-msft's avatar
    v-ljerr-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi emskikay,

     

    Could you post your table structures with some sample/mock data and the expected result, so that we can better assist on this issue? Do mask sensitive data before uploading. :smileyhappy:

     

    Regards

    • emskikay's avatar
      emskikay
      New Member

      Hi there, here's a sample mock data. Say I have this full symmetric matrix.  G stands for group.  The matrix has 3 groups G1, G2 and G3.  A-H are locations.

       

      YG1-AG1-BG1-CG2-DG2-EG2-FG3-GG3-H
      G1-A1       
      G1-B0.981      
      G1-C0.950.871     
      G2-D0.880.880.831    
      G2-E0.920.910.850.891   
      G2-F0.740.760.670.820.771  
      G3-G0.820.870.690.920.820.771 
      G3-H0.800.840.670.780.760.650.751

       

      If I want to view the matrix for G3 only it should look like.  Where the columns and rows for G1 and G2 are filtered out.

      YG3-GG3-H
      G3-G1 
      G3-H0.751

       

      If I want to view G1 and G3 it will be like this

      YG1-AG1-BG1-CG3-GG3-H
      G1-A1    
      G1-B0.981   
      G1-C0.950.871  
      G3-G0.820.870.691 
      G3-H0.800.840.670.751

       

      The real matrix I am working on is 200 x 200 and it will grow bigger.  So it'll be good to allow users to view Groups that they are  interested in.  It will also be good if they can select locations (ie any other second variable) to view.

       

      Is this possible?