Forum Discussion

JeanMariePBI's avatar
JeanMariePBI
Helper I
4 years ago
Solved

RankX using filter within column

Hello, I am relatively new to PBI.  I'm trying to add a measured column that will rank price points from highest to lowest within each product listed in the product Column.  The "Price Ranking"is the...
  • parry2k's avatar
    4 years ago

    JeanMariePBI check these posts

     

    very well explained and you should be able to use it in your solution.

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

     

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

  • smpa01's avatar
    4 years ago

    JeanMariePBI  ranking in subcategory with RANKX measure

     

    _maxPrice = MAX('Table 1'[Price])
    
    _rank = 
    VAR _max= MAX('Table 1'[Product])
    RETURN RANKX(FILTER(ALLSELECTED('Table 1'),'Table 1'[Product]=_max),[_maxPrice],,DESC)