Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I'm trying to add a ranking to a table. In this simple example, I want to rank the cost of each Fruit. This ranking will then be used to pull in a value from another table, so I want to do this either in Power Query or as a Calculated Column. (In Excel, I'd use =SUMPRODUCT((C:C<=C4)*(A:A=A4)) )
Thanks - Mike
| Fruit | State | Price | Fruit Rank |
| Apple | WI | 100 | 1 |
| Apple | TN | 500 | 4 |
| Apple | CA | 200 | 2 |
| Apple | WA | 300 | 3 |
| Pear | WI | 200 | 2 |
| Pear | CA | 100 | 1 |
| Pear | TX | 400 | 3 |
Solved! Go to Solution.
@hamachekm , you might want to refer to the following solutions in Power Query and in calculated column,
Power Query solution
Calculated column solution,
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
@hamachekm , you might want to refer to the following solutions in Power Query and in calculated column,
Power Query solution
Calculated column solution,
| Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
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 |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |