I'm loading a table 'Types', which contains a boolean column 'IsActive' to my collection 'TypeCache'. I want to trim the data for the app as much as possible, filtering out unneeded rows and columns and adding a 'selected' column.
When I use the following order, everything works fine.
=ClearCollect(
TypeCache;
Sort(
ShowColumns(
Filter(
AddColumns(Types; "Selected"; false);
RoutingEnabled = true
); "ID"; "Selected"; "Title"
); ID
)
)
However, when I first drop the inactive rows (IsActive = true), the resulting table only has the inactive rows. Oddly enough, when I drop de active rows (IsActive = false), I get the same result.
=ClearCollect(
TypeCache;
Sort(
ShowColumns(
AddColumns(
Filter(Types; RoutingEnabled = true) ;
"Selected"; false);
); "ID"; "Selected"; "Title"
); ID
)
)
Why is this?