Forum Discussion

Christianvs's avatar
Christianvs
Icon for Helper II rankHelper II
4 years ago
Solved

Sorting and adding columns

Hi   I am trying to add and index/rank row to a table and in order to not get duplicate index numbers I used the DAX writte by Greg_Deckler in this post https://community.powerbi.com/t5/Quick-Measu...
  • HoangHugo's avatar
    4 years ago

    Hi

    Q1: GENERATESERIES will always return index column in Ascending (1 to ...), so you can create new column to RANKX your [Value] in descending.

    Q2: yes, you can change column name in your function like ADDCOLUMNS("your expected name",GENERATESERIES(..))
    Q3: Yes, you can. Can you show me detail of error?