Forum Discussion

shekhar_shres's avatar
shekhar_shres
Advocate II
5 years ago
Solved

Categorising a Column based on Row Count

Hi all, I hope all of you are having a great time. I need a help with Power Query. I have the following Column. I want to add a Category Column that depends on row as below. For exam...
  • Jakinta's avatar
    Jakinta
    5 years ago

    Simply adding 1 would solve it

     

    Table.AddColumn(Source, "Category", each "Category " & Number.ToText(Number.RoundDown(List.PositionOf(Source[ID],[ID])/3)+1))