Increment Row Number on Group March 9, 2023 by Tarik That can be accomplished with the DENSE_RANK() function: DENSE_RANK() OVER(Order By [shade]) as t_index