google-query-language

google sheets query left join one-to-many

送分小仙女□ 提交于 2021-01-05 07:41:40
问题 I have 2 tables and I am trying to perform a left join using google query language,or any formula that could output the result set. Table1 Table2 Result set How can I accomplish that ? Regards 回答1: OK well here is an inner join to start with: =ArrayFormula(query(iferror(split(flatten(if(transpose(filter(Table2!B2:B,Table2!B2:B<>""))=filter(Table1!A2:A,Table1!A2:A<>""),filter(Table1!A2:A,Table1!A2:A<>"")&"|"&transpose(filter(Table2!A2:A,Table2!A2:A<>"")),)),"|")),"select Col1,Col2 where Col1

Create Percentage Table from 2 other tables - Google Query

我与影子孤独终老i 提交于 2021-01-01 07:52:09
问题 Is there a way to calculate a 3rd crosstab Table containing percentages from 2 crosstab tables created from Google Queries? Initially i was stacking the 2 queries together using braces, but found that if there were row or column mismatches, then both the table queries would result in #VALUE error. So separated the 2 tables with 100 grouped rows between them. I want to calculate FTR percentage table below these tables. Here is an FTRTable with Edit access. You can refer to my earlier related

Create Percentage Table from 2 other tables - Google Query

流过昼夜 提交于 2021-01-01 07:52:00
问题 Is there a way to calculate a 3rd crosstab Table containing percentages from 2 crosstab tables created from Google Queries? Initially i was stacking the 2 queries together using braces, but found that if there were row or column mismatches, then both the table queries would result in #VALUE error. So separated the 2 tables with 100 grouped rows between them. I want to calculate FTR percentage table below these tables. Here is an FTRTable with Edit access. You can refer to my earlier related

Combine duplicate rows in column as comma separated values - Google Query

Deadly 提交于 2021-01-01 07:15:02
问题 If i have 2 columns viz., ID & Name, ID column containing duplicates, and if i want to group by ID to get unique ID's but name column should be a comma-separated list, can this be possible in Google Query? | ID | Name | =============== | 1001 | abc | --------------- | 1001 | def | --------------- | 1002 | kjg | --------------- | 1003 | aof | --------------- | 1003 | lmi | --------------- | 1004 | xyz | --------------- into | ID | Name | ==================== | 1001 | abc, def | ---------------

Combine duplicate rows in column as comma separated values - Google Query

浪子不回头ぞ 提交于 2021-01-01 07:14:16
问题 If i have 2 columns viz., ID & Name, ID column containing duplicates, and if i want to group by ID to get unique ID's but name column should be a comma-separated list, can this be possible in Google Query? | ID | Name | =============== | 1001 | abc | --------------- | 1001 | def | --------------- | 1002 | kjg | --------------- | 1003 | aof | --------------- | 1003 | lmi | --------------- | 1004 | xyz | --------------- into | ID | Name | ==================== | 1001 | abc, def | ---------------

Combine duplicate rows in column as comma separated values - Google Query

别等时光非礼了梦想. 提交于 2021-01-01 07:13:36
问题 If i have 2 columns viz., ID & Name, ID column containing duplicates, and if i want to group by ID to get unique ID's but name column should be a comma-separated list, can this be possible in Google Query? | ID | Name | =============== | 1001 | abc | --------------- | 1001 | def | --------------- | 1002 | kjg | --------------- | 1003 | aof | --------------- | 1003 | lmi | --------------- | 1004 | xyz | --------------- into | ID | Name | ==================== | 1001 | abc, def | ---------------