简体   繁体   中英

Delete all rows in CSV(Excel) except each nth row

I have a csv dataset file having more than 3 million entries. I would like to delete all entries except every 7th entry (keep only every 7th row). How can i do it using power query OR defining a function while using "Get Data" from text/csv functionality in excel?

Load your source.

Open the Powerquery advanced query editor > home tab > remove rows > remove alternate rows

Specify pattern as follows:

图案

Result:

结果

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM