From the above screen shot i need to filter distinct data from coloumn name ‘Audit Area description’ and ‘fiscal year’ but not to apply filter on the coloumn amount, i need the output datatable like below the ‘required data’ that i have attached in the screenshot for the reference i have attached a sample excel sheet below in which in sheet 1 data table operation need to be applied and in sheet 2 is the desired output i need, please help me to find the solution
Regards,
Alan Demo.xlsx (9.2 KB)
(From row In dtInput
Group row By key = New With { Key .AuditAreaDescription = row.Field(Of String)("Audit Area Description"), Key .FiscalYear = row.Field(Of String)("fiscal_year")}
Into Group
Select Group.First).CopyToDataTable
Hi thanks for the reply, actually i am getting this in json array format and then i have converted that to datatable that datatable values that i have attached on the excel sheet if we invoke vba will it work? and also this data differs like coloumn name should be same but data differs, i have seen your code there in the fiscal year coloumn data may change some time more year will be added like FY 2027,2028 etc for this case maybe it will work but i need more dynamic way