改成下面的试试 IF(INARRAY(E4,TD_FIN_ORG.select(DIM_BASE_CD,IS_MERGE='Y'))>0,if(C4="单体实际",SQL("BW_TB","SELECT kpi_code FROM TD_FIN_KPI WHERE kpi_code NOT LIKE '%"+$BS+"%' AND kpi_code NOT LIKE '%"+$PL+"%'",1,1),TD_FIN_KPI.select(kpi_code)),TD_FIN_KPI.select(kpi_code)) |
========== IF(INARRAY(E4,TD_FIN_ORG.select(DIM_BASE_CD,IS_MERGE='Y'))>0,if(C4="单体实际",SQL("BW_TB","SELECT kpi_code FROM TD_FIN_KPI WHERE kpi_code NOT LIKE 'BS%' AND kpi_code NOT LIKE 'PL%'",1,1),TD_FIN_KPI.select(kpi_code)),TD_FIN_KPI.select(kpi_code))
|