Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Jack2of3
Helper II
Helper II

Add sequence number that resets when filters applied

I need to add a Row Number (1,2,3,4...) to a table that resets to (1,2,3,4...) when a filter is applied.

This is what I entered: *note: "ROW_NUM" is selected via SQL.

Jack2of3_0-1694640355842.png

 

1 ACCEPTED SOLUTION

Decided to take the easy path and used a paginated report and added a column with =RowNumber("Contracts")

View solution in original post

3 REPLIES 3
YukiK
Impactful Individual
Impactful Individual

Could you elaborate on your ask? What do you mean by reset? Are you saying the row number should be per group? Also if you could share a sample data, that would be immensely helpful for us to troubleshoot.

By Reset I mean the row numbering should reset to 1,2,3,4... if a filter is applied like Cost Center "2252". The resulting rows would then show 1,2,3,4.... There are numerous filters that could be applied. The row sequence is based on Contract IDV which is unique for each row.

DCOO Cabinet Name Dept. Name Dept. Number COST_CENTER_NAME COST_CENTER CONTRACT IDV
"STANLEY, EDNA R" TRANSIT SERVICE DELIVERY BUS TRANSIT OPERATIONS 3233 OPERATIONS CENTRAL INSTRUCTION 3201 PS91211000
"STANLEY, EDNA R" TRANSIT SERVICE DELIVERY BUS TRANSIT OPERATIONS 3233 OPERATIONS CENTRAL INSTRUCTION 3209 PS134942000
"STANLEY, EDNA R" TRANSIT SERVICE DELIVERY BUS TRANSIT OPERATIONS 3233 OPERATIONS CENTRAL INSTRUCTION 3209 PS4071300
"STANLEY, EDNA R" TRANSIT SERVICE DELIVERY BUS TRANSIT OPERATIONS 3233 OPERATIONS CENTRAL INSTRUCTION 3209 PS79597000
"STANLEY, EDNA R" TRANSIT SERVICE DELIVERY BUS TRANSIT OPERATIONS 3233 OPERATIONS CENTRAL INSTRUCTION 3209 PS81176000
"AMIRI, SHAHRZAD" SHARED MOBILITY CONGESTION REDUCTION 2003 EXPRESSLANES 2220 PS48720000
"AMIRI, SHAHRZAD" SHARED MOBILITY CONGESTION REDUCTION 2003 EXPRESSLANES 2220 PS94845000
"AMIRI, SHAHRZAD" SHARED MOBILITY CONGESTION REDUCTION 2003 EXPRESSLANES 2220 PS401642000
"AMIRI, SHAHRZAD" SHARED MOBILITY CONGESTION REDUCTION 2003 EXPRESSLANES 2220 PS51236002

Decided to take the easy path and used a paginated report and added a column with =RowNumber("Contracts")

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors