Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Top N

I have the following view in Power BI:   The above visual contains TOP 10 job titles by the count of PERNR. This is a visual level filter on the table as follows:  But as shown in the ...
  • v-yuta-msft's avatar
    v-yuta-msft
    7 years ago

    Anonymous ,

     

    Sorry for the mistake I have made, please change the formula with dax below:

    Row Number =
    COUNTROWS (
        FILTER (
            IHR,
            IHR[Column Count of Assignee] <= EARLIER ( IHR[Column Count of Assignee] )
                && IHR[Index] <= EARLIER ( IHR[Index] )
        )
    )
    

    Community Support Team _ Jimmy Tao

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