Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hello,
I would like to know if it is possible to use rankx function in DAX to order a table with alphanumeric fields (see the example below), by ordering first by amount (descending), by project then by phase.
Project phase amount
| 1-BC-155-A01 | 2 | 100 |
| 1-BC-155-107 | 7 | 5000 |
| 1-BC-154-107 | 8 | 2500 |
| 1-BC-153-107 | 10 | 200 |
| 1-BC-149-A01 | 11 | 3000 |
| 1-BC-149-107 | 1 | 102 |
| 1-BC-080-601 | 20 | 105 |
| 1-BC-080-225 | 22 | 10000 |
Thanks in advance for your help.
Hi @Anonymous ,
by ordering first by amount (descending), by project then by phase.
Then what is the excepted output for your table ?
Hello,
I have already test your solution and what it does, the table is sorted first by amount, then by project and finally by phase. At the end, the table is sorted by phase.
What I would like it is to be able to sort the following table:
| expenses | project | phase |
| 5000 | a | 2 |
| 5000 | a | 1 |
| 5001 | b | 2 |
| 5001 | b | 1 |
like in Excel, using a custom sorter with three level,
1 for the Amount
2 for the Project
3 for the Phase
to obtain the following table:
| expenses | project | phase |
| 5001 | b | 1 |
| 5001 | b | 2 |
| 5000 | a | 1 |
| 5000 | a | 2 |
I have tried the Table Sorter from the MarketPlace. But it works only with numerical data not the Alphanumeric one.
I thought that we could use the rankx function but again it seems only for numerical data.
So my Question is :
Is there a way to sort a table in Power BI using some sort of Custom Filter (2,3,4 levels) as in Excel.
Regards,
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 38 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 34 | |
| 33 | |
| 30 |