Apr 16 2020 08:05 AM
I´ve a spreadsheet with filtered rows. I´d like to load only the already filtered data to PowerQuery.
Is there a way to do this?
Apr 16 2020 08:07 AM
Apr 16 2020 08:19 AM
In addition. Not repeat in Power Query exactly the same set of filters as in Excel table you may add helper column to the Table as
=(AGGREGATE(3,5,[@A])=1)+0
there [A] is any column within the table assuming it has no blank values. Similar could be for the range. Formula returns 1 for visible rows and 0 for hided ones.
Within the PowerQuery as first steps filter result on zero for this column and remove it. That shall work for any filter applied in Excel sheet.
Apr 16 2020 08:30 AM
A good idea ... I´m going to try it. A problem could be that the filtered table is already a PQ table. So if I refresh the table the help column could disappear. But I´ve to test it.
Thanks for helping
Apr 16 2020 08:30 AM
Apr 16 2020 08:39 AM
If you add helper column to the table returned by PQ such column won't disappear but it isn't in sync with the table. Not very important in this case since we use any value in current row.
But I didn't catch how entire model works. You have some source data, transform it by Power Query and return the table to the sheet. Apply filtering to the resulting Table, query now this table and return result into one more table. Like this?
Apr 16 2020 08:47 AM
Apr 16 2020 08:55 AM
Apr 16 2020 09:00 AM
Apr 16 2020 09:10 AM
Apr 20 2020 07:52 AM
Hey guys,
thanks for your support. Was really very helpful. Today, I had time to try it.
The last question I have, I understand the result/idea behind of +0, but I don´t understand how it works.
Can you explain this, please.
TX
Michael
Apr 20 2020 07:54 AM
Apr 20 2020 09:38 AM
Nov 24 2020 04:46 PM
May 08 2021 04:41 AM
@Sergei Baklan Thank you for this - a really neat solution - has helped me enormously solve a problem
May 08 2021 05:11 AM
I'm not an author, it's known for a long while. In any case glad it helped.