RANKX function is not working_09122023.pbix

Goal

Calculate rank for specific column and regardless of another one

Solution

RankArt =
IF( HASONEVALUE(Views[Category]),
RANKX( ALL(Views[pageTitle],Views[Category]),  CALCULATE(SUM(Views[screenPageViews])),,DESC), "")