Forum Discussion
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.
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
4 Replies
- PC2790Community 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
- parry2kSuper User
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.⚡
- avacadoDailyRegular Visitor
The is mphasis is the only value in column, everything else is in rows and values.
- v-cazheng-msftCommunity 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