Forum Discussion

dfour's avatar
dfour
Regular Visitor
5 years ago
Solved

Dynamic row numbering for drill through table

Hello,  So i have a database and i've applied certain filters on it to get drill through table visuals. i need index number for each row in the table, i was trying all day but without any success ...
  • Anonymous's avatar
    Anonymous
    5 years ago

    Hi dfour ,

     

    You may try this measure.

    RowNum = 
    CALCULATE (
        COUNT ( 'Table'[Emp Number] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[Emp Number] <= MAX ( 'Table'[Emp Number] )
        )
    )

     

    You can check more details from here.


    Best Regards,
    Stephen Tao

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