Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
)
 
					
				
				
			
		
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
 
            | User | Count | 
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | 
| User | Count | 
|---|---|
| 23 | |
| 12 | |
| 11 | |
| 10 | |
| 9 |