Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

The Unsolvable Ranking

Hi everyone,    I have scoured the fourms and online articles, but nothing is working. Read: (PLEASE HELP!)   I have 2 tables that are direct queried. (The tables do not have a relationship to ea...
  • v-yueyunzh-msft's avatar
    3 years ago

    Hi , Anonymous 

    According to your description, you have scales that work well when you are in one table, but return 1 all at the other, and the reason for this phenomenon may be that the current filter is not fetched. You can try using the ALLEXCEPTEdD() function in your measure to recover the columns you need to filter to try to see if it solves your problem, like this:

    rankx(allselected(Manager1(column)), calculate(sum(Manager1(column))+sum(Manager1(column2)),ALLEXCEPTED('Table'[the column you need to keep filter]))

     

     

    If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem.

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly