IF 语句比较同一列中的日期
IF statement comparing the dates from same column
我有如下 sql 查询:(只放了骨架)
select
e1.empname,
case
when e1.date in {"20201001","20200102"}
and e2.date not in {"20200101","20200102","20200103"} then "entry"
when v1.date > v2.date then "exit"
when v1.date < v2.date then "detsined"
else "promoted"
end as "As usual"
from employee v1, employee v2
where v1.quarter= "2015 Q3"
我正在尝试编写等效的 dax 度量。 IF(table[datestring]>table[datestrin]) 这不起作用。我知道我们需要在这里使用自连接概念。有人可以帮我吗?
该功能在 power bi 上不可用
我有如下 sql 查询:(只放了骨架)
select
e1.empname,
case
when e1.date in {"20201001","20200102"}
and e2.date not in {"20200101","20200102","20200103"} then "entry"
when v1.date > v2.date then "exit"
when v1.date < v2.date then "detsined"
else "promoted"
end as "As usual"
from employee v1, employee v2
where v1.quarter= "2015 Q3"
我正在尝试编写等效的 dax 度量。 IF(table[datestring]>table[datestrin]) 这不起作用。我知道我们需要在这里使用自连接概念。有人可以帮我吗?
该功能在 power bi 上不可用