google 张查询 = 真

google sheets query = true

我正在尝试查询棒球逐场比赛得分描述。我能够获取特定列的数据,但无法过滤“isScoringPlay”= true。它在我的查询中出现空白。我的公式应该是:

=QUERY(filteredplaybyplay, "SELECT B, C, D, E, G, H WHERE H = 'true'",1)

这是我的 range and then the query

尝试缩短:

=QUERY(playbyplay, "select B,C,D,E,G,H where H is null", 1)

或正确的:

=ARRAYFORMULA(QUERY(""&playbyplay, 
 "select Col2,Col3,Col4,Col5,Col7,Col8 where Col8 = 'true'", 1))