Forum Discussion

sanabritto's avatar
sanabritto
Regular Visitor
6 years ago

Rankx Filtering

Hi, I'm trying to create a "top 10" dashboard for the top 10 customer calls to a help desk. In order to identify the top 10 callers, I have created a RANKX measure as follows: 

Company Rank = RANKX(ALL('Top 10 - Q1'[Company Name]),[Call Count],,DESC)
 
This seems to work fine for me as the top 10 callers are being identified.
 
However, I want to add this measure as a filter to my visuals. For example, what top 5 services are my top 10 customers calling for. I have already used a 'Top N' filter on this visual for 'Top 5 Services'. Since I cannot add two 'Top N' filters to a visual, I thought doing a 'less than or equal to' on a RANKX measure would work but for some reason the filter does not work for me. Is there a way to work around this? 
 
 

1 Reply

  • Stachu's avatar
    Stachu
    Community Champion

    Can you add sample tables (in format that can be copied to PowerBI) from your model with anonymised data? Like this (just copy and paste into the post window).

    Column1 Column2
    A 1
    B 2.5