Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Need help with table or matrix visual

Hello,

 

I have a table like this

Yearmen clothingwomen clothingchildren chothingmen shoeswomen shoeschildren shoes
2010102030405060
2011152535455565

 

I want to create a visual like this

Item2010 sale2011 sale
clothing6075
shoes150165

 

Thank you in advance!

  • In the query editor

     

    - Select your year column, right click and choose unpivot other columns

    - Split the Attribute column at the space and name those columns what you want

    - Use the column with Clothing, Shoes, etc. in a matrix visual with the Year column on columns and Sum aggregration of the Value column

     

    Pat

     

2 Replies

  • mahoneypat's avatar
    mahoneypat
    Microsoft Employee

    In the query editor

     

    - Select your year column, right click and choose unpivot other columns

    - Split the Attribute column at the space and name those columns what you want

    - Use the column with Clothing, Shoes, etc. in a matrix visual with the Year column on columns and Sum aggregration of the Value column

     

    Pat

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you very much!