Forum Discussion
EglanVer
1 year agoNew Member
Request for help with RANKX function (DAX measure)
Hi everyone, I am facing an issue with the RANKX DAX. Can anyone help me please? The table in the screenshot below should display the quantity of each brand purchased. There are 153 brands that ...
- 1 year ago
Try this measure using the RANK function. It's preferred over RANKX in most cases.
RANK_FINAL = VAR SourceTable = ADDCOLUMNS ( ALLSELECTED ( APRIL_2024_PURCHASES[BRANDS] ), "@ShareOfQuantity", [Share of quantity] ) VAR Result = RANK ( DENSE, SourceTable, ORDERBY ( [@ShareOfQuantity], ASC ) ) RETURN Resulthttps://www.sqlbi.com/articles/introducing-the-rank-window-function-in-dax/
EglanVer
1 year agoNew Member
OMG! It works now. 😄 Thank you so much DataInsights for your help and time 🙏
DataInsights
1 year agoSuper User