Forum Discussion
Morrison
Helper I
3 years agoHow to add a Rank by multiple columns
Hello, how can I add lap number column in PowerQuery or in Dax? Tour number is based on store, date, area.
I am attaching an example of what I would like to overe in the column N Lap
Thx
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new column.
N Lap CC = RANKX ( SUMMARIZE ( FILTER ( 'Table', 'Table'[Store] = EARLIER ( 'Table'[Store] ) ), 'Table'[Date] ), 'Table'[Date], , ASC )
1 Reply
- Jihwan_Kim
Super User
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new column.
N Lap CC = RANKX ( SUMMARIZE ( FILTER ( 'Table', 'Table'[Store] = EARLIER ( 'Table'[Store] ) ), 'Table'[Date] ), 'Table'[Date], , ASC )