tableau-判断空值

If Isnull(pay_time) then 0 end

如果为空值就等于0,如果不使用isnull则无法判断空值,对于sql处理空值使用nvl ,不然这列存在空值,如果排除其它属性,则空值也会被排除,应使用  nvl(a.non_payment_type,'测试') not like '%未压批%' ,如果直接a.non_payment_type not like '%未压批%' 则排除了未压批和空值

tableau-判断空值