Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
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
)
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
)
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 28 | |
| 19 | |
| 11 | |
| 10 |