Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

How to change table presentation using matrix like one

I have one table like the following one

Item  TypePeriodSitecapacityDemand%
item118-OctSite_A120108.33%
item118-NovSite_A1208066.67%
item218-OctSite_A150280186.67%
item218-NovSite_A300450150.00%

And I want to show the table like this:

Period 18-Oct  18-Nov 
Item  TypeCapacityDemand%CapacityDemand%
item1120108.33%1208066.67%
item2150280186.67%300450150.00%

 

 

I do not find the way to do it, I thought about using the matrix type vizualization but PowerBI calculate any field (average, count, etc....) instead to report only the values.

Any help is welcome.

LamineM

  • Hi Anonymous 

    Create a matrix as below

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

9 Replies

  • Anonymous in matrix it does need aggregation, and you can change the aggregation to max or min , it will meet your needs, only problem you will run into if you have multiple rows for item type and capacity, to overcome this, add a unique index column and put that on the rows, in that case it will never aggregate the values.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks Parrry2k for your very prompt answer.

      I am trying to understand and set up your solution, will keep you informed.

      Best Regards

      LamineM

      • Anonymous's avatar
        Anonymous
        Not applicable

        I have created the unique index as adviced

        Item Type Period Site capacity Demand % Index

        Item118-OctSite_A5040.000.000.00%1
        Item118-OctSite_B1260.00288.0022.86%406

        For each Item Type ( Item1 for example) I have 2 related rows ( for the 2 sites).

        When in matrix I change to Min  or Max (capacity and Demand), it display the value ( min or max) not corresponding to the real value of the Site ( Site_A or Site_B)....

        I do not understand the "role" of Index...and why PowerBI does not aggregate..

        Thanks in advance for any clarification.

        BR

         

         

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi Anonymous 

    Create a matrix as below

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

  • v-juanli-msft's avatar
    v-juanli-msft
    Community Support

    Hi Anonymous 

    Is this problem sloved?

    If not, please let me know.

     

    Best Regards

    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.