Forum Discussion
insert specific rows from a table into a second table with condition
- 4 years ago
Hi Anonymous ,
The ideal way to have your challenge resolve in a timely and accurate manner is by providing data in table format with all sensitive information removed.
Please see below for proposed solution.
Table1: The detail of every piece
Table2: The detail of every machine/operator
Below is a direct query and extract data from Table1 to Table2:
1. Add a custom step and add formula below (i.e. the direct query method):
if [#"ok/nok"] = "ok" then Table.SelectRows(Table2,(x)=> ([piece] >= x[begin piece] and [piece] <= x[end piece])) else null
2. Expand the column:
Result:
Regards
KT
Hi Anonymous ,
The ideal way to have your challenge resolve in a timely and accurate manner is by providing data in table format with all sensitive information removed.
Please see below for proposed solution.
Table1: The detail of every piece
Table2: The detail of every machine/operator
Below is a direct query and extract data from Table1 to Table2:
1. Add a custom step and add formula below (i.e. the direct query method):
if [#"ok/nok"] = "ok" then Table.SelectRows(Table2,(x)=> ([piece] >= x[begin piece] and [piece] <= x[end piece])) else null
2. Expand the column:
Result:
Regards
KT