Forum Discussion

natg's avatar
natg
Frequent Visitor
8 years ago
Solved

Dynamic filter across visuals

Pros,   I am trying to build a dashboard with a set of visuals where the dashboard need to answer the following questions.   Visual 1: Who are my Top 5/10 customers by a measure (THis is accompli...
  • v-ljerr-msft's avatar
    8 years ago

    Hi natg,

     

    Based on my test, you can firstly use the formula below to create the measure to calculate the [Custom Rank], then you should be able to use the [Final Sales] measure to apply visual level filters([Final Sales] is greater than 0) on the visuals of the three answers to get the expected result in your scenario.

    Customer Rank = 
    RANKX (
        ALL ( 'Sample'[Customer] ),
        CALCULATE ( [Total Sales], ALLEXCEPT ( 'Sample', 'Sample'[Customer] ) ),
        ,
        DESC
    )
    

     

    Here is the modified pbix file for your reference. :smileyhappy:

     

    Regards