如果你只是想在子表上显示出对应数据,可以在子表 E2单元格用条件属性
即把不需要展示的隐藏掉
也可以改成一条SQL
SELECT * from 产品 INNER JOIN 供应商 ON 产品.供应商ID=供应商.供应商ID WHERE 1=1 ${IF(分类=='调入'," AND 供应商.地区='华北' AND 产品.产品名称 not like '%奶%'",IF(分类=='正式'," AND 供应商.地区='华北' AND 产品.产品名称 like '%奶%'",IF(分类=='临时'," AND 供应商.地区='华南'",IF(分类=='其他'," AND 供应商.地区 not IN ('华北','华南')"," AND 1<>1"))))}
补充
数据集ds2
数据集DS1(截图中只改了分类为调入的情况,其它情况模仿着改)
预览