How to skip the last row from an excel source

bk 461 Reputation points

Hi All,
I am loading excel files into ADLS and then into SQLMI. The incoming excel files are from a third part reporting tool that spits the output as an excel. All these excel sheets have a "TOTAL" at the end. Is there a way to skip the last row when COPY ing the files into ADLS?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,704 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Nandan Hegde 29,901 Reputation points MVP

    Hey @bk ,

    The below logic might help :

    1. Get the overall row count of the excel sheet :

    2) Then via Range parameter in excel dataset :

    That should help you to skip the last row and the column range would still be dynamic