Forum Discussion

RaffiKouzoudj's avatar
RaffiKouzoudj
Helper III
6 years ago
Solved

Create Index on Visual Table

Hello, I have a visual table (created from other tables). I am wondering how can I create an index column on this table. on this table I do not have the option of using M Query (edit query) since t...
  • V-lianl-msft's avatar
    V-lianl-msft
    6 years ago

    Hi RaffiKouzoud,

     

    Sorry, Based on the results you expect,RANKX needs a unique column as a condition to sort.

    The alternative is to use M query in the original table to add index columns first, and then use DAX to create a new table, which needs to contain the index columns previously added.

    Then use the RANKX function to sort the new table according to the index columns in the new table.

     

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