Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello all! I have a matrix (see below) that is conditionally formatted by a calculated column named "Color." There are 4 colors- red, yellow, green, and blue. I would like to click on a month (column) in the matrix and have the values automatically sort in the order red, yellow, green, blue. If automatic sort is not possible, is there a way to just sort the whole table where each column is sorted by color?
I have already created a Sort table and connected it to my Data table on the "Color" column.
Solved! Go to Solution.
Hi Tom Shen, thank you for your suggestion. I gave up on the matrix for my purposes and instead changed the visual to a table.
This allowed me to add a Rank measure that helped me to sort the Sum of Balance. (The Combined Rank Color Measure is in the table and sorted DESC, but minimized)
Hi @bernate,
What I tried was to use measure for sorting, if your dataset is huge you can use measure for sorting as measure takes resources only when it is used.
Sort Table(measure) =
SWITCH(
TRUE(),
MAX( 'Table'[Column])="Red",1,
MAX('Table'[Column])="Yellow",2,
MAX('Table'[Column])="Green",3,
MAX('Table'[Column])="White",4,
MAX( 'Table'[Column])="Gray",5,
BLANK()
)
It is also possible that my dataset is too simple to fully reproduce your problem, if you can provide your example data or pbix file, it will help you solve the problem faster, I look forward to your reply, I will get back to you as soon as I receive your message!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi Tom Shen, thank you for your suggestion. I gave up on the matrix for my purposes and instead changed the visual to a table.
This allowed me to add a Rank measure that helped me to sort the Sum of Balance. (The Combined Rank Color Measure is in the table and sorted DESC, but minimized)
Hi @bernate ,
Thanks for the feedback, it's great to see that you've found a solution! If you have any other questions or need From the current situation, you have found the corresponding solution situation, if you can, please mark your answer as solved to help other users encountering similar problems, if you have further questions, feel free to contact me, I will reply to you as soon as I receive the message!
Hope it helps!
Best regards,
Community Support Team_ Tom Shen
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi Dharmendar, yes I do. Here is the result when I apply a sort to the matrix.
As you can see, the sorting doesn't seem to be in any order.
User | Count |
---|---|
117 | |
75 | |
62 | |
50 | |
44 |
User | Count |
---|---|
174 | |
125 | |
60 | |
60 | |
57 |