@LivioLanzo I managed to fix that error but get an error on the final step now saying
"Expression.Error: We cannot convert a value of type List to type Table.
@moizsherwani Are you pasting the code exactly as it is? If not, what is the complete M code?
Did I answer your question correctly? Mark my answer as a solution!
Proud to be a Datanaut!