Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all
i have data like below table
| Type | Value | percentage |
| A | A1 | 100 |
| A | A2 | 80 |
| A | A3 | 90 |
| A | A3 | 70 |
| B | B1 | 10 |
| B | B2 | 40 |
| B | B3 | 30 |
| B | B4 | 50 |
i want to add a rank column by using percentage, based on the type
i need this logic in M query, How can I achieve?
| Type | Value | percentage | Percentage Descending Order based on Type |
| A | A1 | 100 | 1 |
| A | A2 | 80 | 3 |
| A | A3 | 90 | 2 |
| A | A3 | 70 | 4 |
| B | B1 | 10 | 4 |
| B | B2 | 40 | 2 |
| B | B3 | 30 | 3 |
| B | B4 | 50 | 1 |
Solved! Go to Solution.