Forum Discussion

Arshadjehan's avatar
Arshadjehan
Icon for Helper I rankHelper I
6 years ago
Solved

Count of records Based on RANKX

I have dynamically filtered the based based on a slicer options of:

Top 3, Top 5 and Top 10. I want to display number of records filtered , e.g when I select Top 3 , records returned after RANKX function may be 3 or more based on ties (I have used Dense option in RANKX) . So how can I show count of records on a card?

 

  • Arshadjehan - Given the form of that RANKX calculation it must be a calculated column. Therefore, this should be something like the following:

     

    Male = COUNTROWS(FILTER('Table',[Top N] <= 3 && [Gender]="M"))
    
    Female = COUNTROWS(FILTER('Table',[Top N] <= 3 && [Gender]="F"))

     

     

6 Replies