Hello people. I'm new at using Power Query and I'm having a problem. As I need to work with a huge spreadsheet - more than 2 million rows - I wish to know how many of rows there are. Dou you know how can I do that? Thanks.
Power Query only shows you a preview of the first 1000 rows of the data. It does this so that it can be responsive when working in the query editor. If you want to get a row count, you can choose any column that doesn't contain blanks or nulls, and on the Transform tab choose Statistics > Count Values. This will give you the row count. You can then delete the step to revert back to the previous view.
Mynda
I just discovered you can also see the total without inserting a step by changing the profile to operate over the entire dataset: In the lower-left corner of your editor, select either "Column profiling based based on entire data set".
This is ok for small tables, but I wouldn't do that on tables with upwards of hundreds of thousands of rows.
Why would that be? Isn't it essentially doing the same thing with the profile as with the count step?
(I've never been able to use power query for very tables anyway. The power queries I've managed to construct with unpivoting/pivoting are unusably slow for anything over ~2-10,000 rows)
The Power Query editor gives you a 1000 row snapshot of the data. It does this to enable it to remain agile when you perform steps on the data in the editor. If you force it to reference the entire dataset while building your queries, it has to process each step on the entire dataset as you're working in the editor. Whereas, in the default setting of showing just 1000 rows, it only processes the steps on the entire dataset upon Close & Load.