Forum Discussion

avacadoDaily's avatar
avacadoDaily
Regular Visitor
5 years ago
Solved

How to group data columns in matrix based on binary value

I have a matrix table below, and have a condition "is supplier Mphasis" which is always yes or no. I want to create a column hierarchy? (not sure if that is the correct phrase) where it splits the data like the second picture below.

 

 

When I add the data to the condition data into the column section in power bi visualization, it splits the data but also adds a total section which i do not need.

 

I would also like to have the data grouped within the yes to be shown before the no.

 

4 Replies

  • PC2790's avatar
    PC2790
    Community Champion

    Hi avacadoDaily ,

     

    For your first query- When I add the data to the condition data into the column section in power bi visualization, it splits the data but also adds a total section which i do not need.

    Solution: In SubTotals section, turn off the Per row level and Per column level option.

    The setting should be like:

     

    For your second query of the sorting order, please refer any of the below as per your suitability:

    https://docs.microsoft.com/en-us/power-bi/create-reports/desktop-sort-by-column

    or

    https://www.excelnaccess.com/custom-sorting-in-power-bi/

     

    Please provide a Kudos to this answer if you found it interesting.

    If this post helps, then please consider accepting it as the solution to help the other members find it more quickly

     

  • avacadoDaily add yes/no column after the existing column you have on columns, instead of this as the first column

     

    Check my latest blog post Year-2020, Pandemic, Power BI and Beyond to get a summary of my favourite Power BI feature releases in 2020

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • avacadoDaily's avatar
      avacadoDaily
      Regular Visitor

      The is mphasis is the only value in column, everything else is in rows and values.

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

    Hi, avacadoDaily 

    Has your problem been solved? If it is solved, please  Accept that post as the solution to help the other members find it more quickly.

     

    Best Regards,

    Caiyun Zheng