Forum Discussion
Custom column Index or Ranking by other column
I would create another table with just the customers and put an index column on it. Then you should be able to relate the two tables and use the "Sort by" functionality or just filter your visual/page/report to that ID field <= 20.
In Query Editor, go to Add Column and then use the Add Index Column drop down in the General area of the ribbon (1st box).
- Marlonrb10 years agoFrequent Visitor
I used the same select, because we've half milion records in our client table.
- Marlonrb10 years agoFrequent Visitor
Hi my friend,
Can I bring to P.BI, my client table even it has half milion of records?
or How can I create a RANK measure in my table? I need to rank and show only all my 20 big clients
- Greg_Deckler10 years agoCommunity Champion
Sure, half a million records should not be too much of a problem, I've created datasets with millions of rows in them.
- v-sihou-msft10 years agoMicrosoft Employee
According to your description, you want to create a rank column which only increases when group changes. Right?
In this scenario, you can just use RANKX() to dense rank based on the group column, please refer to my sample below:
rank = RANKX(Query1,Query1[Table_DAX_sorting[name]]],,ASC,Dense)
Regards,
- Ying_P9 years agoHelper I
Hi,
I am super new to Power BI and looking for the information about how to add an index column on a table created in Power BI.
Could you explain this with a bit more details? Thanks a lot!
- Marlonrb9 years agoFrequent Visitor