Forum Discussion

Handyy's avatar
Handyy
New Member
3 years ago
Solved

Matrix about counting how many specific values in column

Hello,

 

I'm trying to create a Matrix from data that has specific values of 5,2,1,0 and would like to show how many of those values are in each, but no matter how I try to put the columns in the Matrix I can't figure it out.

 

The data is as follows (will continue on to be at least 500 lines of numbers):

 

And the Matrix I'm trying to create should look like this:

 

Any help is appreciated!

  • Dear , 
    Attached the file i created  , there are the steps you should do in power queries : 

    1- You need to Unpivot the table 
    2- Duplicate the new table created 
    3- remove the columns and make the Distinct column as unique ( remove duplicates ) 
    4- Relationshim ( one to many ) 
    5-in Matrix table just drag and drop the values and make it as count .

    Hope this helps , accept as a solution . Thanks 

     https://drive.google.com/drive/folders/1q_JILK5iNnwDkNU_uiS2n4nO16KthG2b?usp=sharing 


5 Replies

  • rajulshah's avatar
    rajulshah
    Resident Rockstar

    Handyy ,

     

    Please unpivot the columns and plot in the matrix as follows and you'll get the desired result:

    Please let me know if this didn't help.

    • Handyy's avatar
      Handyy
      New Member

      Thank you, unpivoting the column was the thing I didn't realize!

  • bhelou's avatar
    bhelou
    Responsive Resident

    Dear , 
    Attached the file i created  , there are the steps you should do in power queries : 

    1- You need to Unpivot the table 
    2- Duplicate the new table created 
    3- remove the columns and make the Distinct column as unique ( remove duplicates ) 
    4- Relationshim ( one to many ) 
    5-in Matrix table just drag and drop the values and make it as count .

    Hope this helps , accept as a solution . Thanks 

     https://drive.google.com/drive/folders/1q_JILK5iNnwDkNU_uiS2n4nO16KthG2b?usp=sharing 


      • Handyy's avatar
        Handyy
        New Member

        Thank you, unpivoting the column was the thing I didn't realize!