Code for to find out number of occurrence in datatable

Serial number is one of the column in datatable. where we need to update the Serial number Apperence in Count SN Apperence column. below is the reference
image

image

image

Hi @prabhu_ponnusamy,
Add data column “Count SN Appearance” in that table
Datatable - >sort by Serial number
int Rank_Number =1
bool First=True
use for each datatable
if First is true make Rank_Number=1
increment the rank number
assign it into new column
if the serial number changed make First is true
Refer below xaml for Rank order

Rank.xaml (18.7 KB)

Regards,
Arivu