Forum Discussion

ThomasDay's avatar
ThomasDay
Icon for Impactful Individual rankImpactful Individual
10 years ago
Solved

Transpose Rows and Columns in Matrix

Hello Fellow Powerbi'ers,

 

I would very much like to transpose a matrix.  I doubt that's everybody's dream but it somehow doesn't seem crazy hard as an idea.  I looked in the ideas board and couldn't find references to the idea.  Anyone know if it's on there and I didn't see it or if it's already been declined?

 

Anyone else think it's useful?  Or better--anyone have a workaround?

Tom

  • jahida  Great answer jahida...As I was thinking through how to answer your question I untangled the problem.  First, it's a visual I was struggling with.  And several columns I was using were percentile metrics computed from a selection of "provider" records.  This selection is not the same as the selection of providers I was looking to use as columns--so I was struggling to parse the values from that slicer to use as columns.  Anyway, without getting too tangled up in describing the jumble I was in, your question had me just put the providers as columns...and that works great.

12 Replies

  • I was able to transpose data in a Matrix visualization by using the formatting options in the specific visualizations.  Select Values>Show on Rows (slider)>ON.

     

    Hope this helps...

    Todd

    • ctowery's avatar
      ctowery
      Icon for Helper I rankHelper I

      This needs to be considered a solution.

      This absolutely resovled the issue for me.

      Well done treel 

    • Alex_Ooi's avatar
      Alex_Ooi
      Icon for Helper IV rankHelper IV

      This is amazing!!! Thank you. It should be marked as solution.

  • jahida's avatar
    jahida
    Icon for Impactful Individual rankImpactful Individual

    In what context would you like to do the transpose? If we're discussing a Table, there's an M function for it (Table.Transpose).

     

    If you want to do it in a matrix visual, I've got nothing, but I'd be interested to see what matrix visual you built with enough dimensions to make that a useful feature.

    • ThomasDay's avatar
      ThomasDay
      Icon for Impactful Individual rankImpactful Individual

      jahida  Great answer jahida...As I was thinking through how to answer your question I untangled the problem.  First, it's a visual I was struggling with.  And several columns I was using were percentile metrics computed from a selection of "provider" records.  This selection is not the same as the selection of providers I was looking to use as columns--so I was struggling to parse the values from that slicer to use as columns.  Anyway, without getting too tangled up in describing the jumble I was in, your question had me just put the providers as columns...and that works great.

      • prady2581's avatar
        prady2581
        Icon for Helper I rankHelper I

        ThomasDay;I;m new to PowerBI, I request you to please elaborate on the solution for transposing rows and columns in Matrix display.