Group data in datatable and count amount of data

if have data in datatable
image
How 2 Group data in output result same sample picture.

hi nuttapong_ludloy

Can u elaborate your scenario ?
U can take the reference from :

hello @nuttapong_ludloy

if you want group based on the column, by using the below expression you will get the Each column based in the column

DataTable.Columns(“ColumnName”) - pass column name in this expression you will get the values

Regards
Ajay

Need more elaboration in this case.

DataTable in Scenario

1.Group in Column “MonthYear” and count
2.Count by Condition “Expire_year in each MonthYear” and count

Thanks All for Know how.