Having a Dynamic excel which is changing every time and another excel is called standard excel.
I try have to compare with contains operator with the Standard excel with Dynamic excel but its getting an error while comparing.
Need to check the data in Dynamic excel with Standard excel if it is contains those values in Standard Excel, then count the values in session column in Dynamic excel and store in one variable.
We can try with JOIN DATATABLE where it will get the matching records with Join methods and once after getting the output datatable we can add the session column for total value
So it will be interpretated as:
Dynamic
/campaign/WV-0921/?NPCL=CP12
/campaign/WV-0921/?NPCL=HM83
/campaign/WV-0921/?NPCLF=CP12
/campaign/WV-0921/?NPCLF=HM83
/campaign/WV-0921/?NPCLF=PR86
/campaign/WV-0921/?NPCLF=VC65
will rated as match, as we do see
/campaign/WV-0921
on Standard
Feel free to recheck the remaining open questions from above
read in both excels with read range (dtStandard, dtDynamic
give a try on following:
Create a variable: dtFiltered | datatype = DataTable
Assign activity:
LHS: Result | DataType: List(Of DataRow)
RHS:
(From d in dtDynamic.AsEnumerable
let chk = dtStandard.AsEnumerable.Any(Function (x) d(0).toString.Trim.StartsWith(x(0).toString.Trim))
Where chk
Select r = d).toList
then check within an if acitvity
Result.Count > 0
Then: dtFiltered = Result.CopyToDataTable
Else: dtFiltered = dtDynamic.Clone
So it will filter out from Dynamics all rows with a match in Standard