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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.