Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap
Hi all, hope someone can help me with below.
I have a matrix with two rows: risks and departments.
I would like to sort the average column (as what you see below), but would like to keep the order of first column with: 1. Risk, 2. Risk and 3. Risk. Average column & trend are measures.
Incorrect:
Risks | Average | Trend |
2. Risk | ||
a Department 1 | 65.4 | 1.3 |
b Department 2 | 71.8 | 10.5 |
1. Risk | ||
a Department 1 | 57.5 | -0.1 |
b Department 2 | 63.5 | 1.5 |
c Department 5 | 64.3 | 5.3 |
d Department 6 | 71.4 | 3.4 |
e Department 3 | 77.0 | 0.6 |
f Department 4 | 87.6 | -0.5 |
3. Risk | ||
a Department 1 | 78.3 | 1.9 |
b Department 3 | 81.3 | 5.5 |
c Department 4 | 82.8 | 2.2 |
d Department 2 | 88.0 | 1.7 |
It should be like:
Risks | Average | Trend |
1. Risk | ||
a Department 1 | 57.5 | -0.1 |
b Department 2 | 63.5 | 1.5 |
c Department 5 | 64.3 | 5.3 |
d Department 6 | 71.4 | 3.4 |
e Department 3 | 77.0 | 0.6 |
f Department 4 | 87.6 | -0.5 |
2. Risk | ||
a Department 1 | 65.4 | 1.3 |
b Department 2 | 71.8 | 10.5 |
3. Risk | ||
a Department 1 | 78.3 | 1.9 |
b Department 3 | 81.3 | 5.5 |
c Department 4 | 82.8 | 2.2 |
d Department 2 | 88.0 | 1.7 |
Hope someone can help me! Have a nice day 🙂
Hi @Daniel1993
You try by creating a temp table by taking unique value from risk column.
I have used sample data where i have once column call family.
and temp table is
by specifiying the other in which you want to sort the column.
Now in you table create a new columns: using this:
you can also follow this video for custom sort: https://youtu.be/PUaFtLpIMvY?si=n4pkXmw984_LSByi
Did I answer your question? if not please more details about data and problem statment
Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: https://www.youtube.com/@letssolveproblem
Regards
Hey! Thanks for explaining, but I think I was not clear.
Now I can sort on ''Risks'' to see below.
Risks | Average |
1. Riskname | |
<NAME> | 74.6 |
<NAME> | 61.1 |
<NAME> | 82.4 |
<NAME> | 62.2 |
<NAME> | 61.6 |
<NAME> | 61.4 |
2. Riskname | |
<NAME> | 60.8 |
<NAME> | 68.1 |
3. Riskname | |
<NAME> | 84.7 |
<NAME> | 76.2 |
<NAME> | 81.3 |
<NAME> | 73.6 |
And I can sort on Average, and below is what I got:
Risks | Average |
2. Riskname | |
<NAME> | 60.8 |
<NAME> | 68.1 |
1. Riskname | |
<NAME> | 61.1 |
<NAME> | 61.4 |
<NAME> | 61.6 |
<NAME> | 62.2 |
<NAME> | 74.6 |
<NAME> | 82.4 |
3. Riskname | |
<NAME> | 73.6 |
<NAME> | 76.2 |
<NAME> | 81.3 |
<NAME> | 84.7 |
Now, the problem is that I would like to sort on ''Average'' from low to high, but the risks should be in order of 1-2-3. The outcome should be like this:
Risks | Average |
1. Riskname | |
<NAME> | 61.1 |
<NAME> | 61.4 |
<NAME> | 61.6 |
<NAME> | 62.2 |
<NAME> | 74.6 |
<NAME> | 82.4 |
2. Riskname | |
<NAME> | 60.8 |
<NAME> | 68.1 |
3. Riskname | |
<NAME> | 73.6 |
<NAME> | 76.2 |
<NAME> | 81.3 |
<NAME> | 84.7 |
I tried your solution, but it seems like it doesn't work 😞 Or should it work?
Hi @Daniel1993
I tried of the post on commnuinity it worked for me, but for that you may need to convert your matrix to table view which i am not sure acceptable to you. Here is link for the solution on commnunity: https://community.fabric.microsoft.com/t5/Desktop/Order-multiple-columns-in-a-matrix/m-p/135815
It worked for me here is the Schreen shot:
If it works for please accpt the solution, other will be benifited by this
Regards
Thats unfortunately not possible for us, we need the matrix, because I have 2 different rows..
one with:
1. Risk
2. Risk
3. Risk
And within each risk, there are different risknames (other column)..
If this is not possible, than I have to deal with it haha.
I don't want to have multiple names in the table.