isempty = var v_table1 =filter('产品表','产品表'[商品类别]="furniture")
var v_table2 =filter('产品表','产品表'[商品类别]="XXXX")returnisempty(v_table1)//return isempty(v_tabble1) //检查表是否为空// return countrows(v_table1) //返回非空行数
无购买行为客户数 = var selectcustomers =calculatetable(distinct('客户表'[客户编号]),allselected())
var customerwithoutsales =filter(selectcustomers,isempty(relatedtable('订单表')))//筛选出与订单表关联后为空行的客户
var output =countrows(customerswithousales)return output