Forum Discussion

Daryn-TP's avatar
Daryn-TP
Regular Visitor
4 years ago
Solved

How do I group a matrix by Values?

I have a table similar to the following table built in PBI. There are 4 metrics and they are compared accross 3 dates.

however I want to group it like so (which i put together in excel). How do I get the matrix in pbi to group metrics like I have in excel?

 

  • If you unpivot the value columns in the query editor, then you can use the resulting attribute column for your column headers.

    Getting the formatting how you want it is a separate challenge.

     

4 Replies

  • Can you provide a sample dataset? Depending on how your data is pivoted or unpivoted the solution could be rather different.

    • Daryn-TP's avatar
      Daryn-TP
      Regular Visitor

      Here is a mock sample of the data set. 

       

      DCLocationCapacity % UtilizedCapacity Used (TiB)Capacity Total (TiB)Capacity Used (TB)Capacity Total (TB)Remaining (TB)Date
      HWThwtaux000        0.65734.001100.00734.001100.00366.0010/27/2021
      HWThwtpri0000.65743.001100.00743.001100.00357.0010/27/2021
      MRLmrlaux000 0.731040.001420.001040.001420.00380.0010/27/2021
      MRLmrlpri000 0.75925.401200.00925.401200.00274.6010/27/2021
      VFOvfaux0000.86883.101015.00883.101015.00131.9010/27/2021
      VFOvfpri0000.87985.201100.00985.201100.00114.8010/27/2021
      HWThwtaux000        0.65737.801100.00737.801100.00362.2011/24/2021
      HWThwtpri0000.65737.801100.00737.801100.00362.2011/24/2021
      MRLmrlaux000 0.731040.001420.001040.001420.00380.0011/24/2021
      MRLmrlpri000 0.75924.401200.00924.401200.00275.6011/24/2021
      VFOvfaux0000.86883.001015.00883.001015.00132.0011/24/2021
      VFOvfpri0000.87985.101100.00985.101100.00114.9011/24/2021
      HWThwtaux000        0.65737.001100.00737.001100.00363.0012/29/2021
      HWThwtpri0000.65737.001100.00737.001100.00363.0012/29/2021
      MRLmrlaux000 0.741060.001420.001060.001420.00360.0012/29/2021
      MRLmrlpri000 0.75935.001200.00935.001200.00265.0012/29/2021
      VFOvfaux0000.86879.701015.00879.701015.00135.3012/29/2021
      VFOvfpri0000.87981.801100.00981.801100.00118.2012/29/2021
      • AlexisOlson's avatar
        AlexisOlson
        Super User

        If you unpivot the value columns in the query editor, then you can use the resulting attribute column for your column headers.

        Getting the formatting how you want it is a separate challenge.