【发布时间】:2018-07-16 05:14:54
【问题描述】:
我需要忽略当前的一周。我找到了一种使用这个计算字段的方法:
[当前周过滤器]
DATEDIFF('week',DATETRUNC('week',[Reporting Day],'Sunday'),
DATETRUNC('week',TODAY(),'Sunday')) >= 1
我还创建了一个过滤器:
[排除当前过滤器]
if [Current Week Filter] then
'Yes'
else
'No'
end
有效!但是,如果我想将当前周与其他周一起包括在内,我必须:删除过滤器或通过选择 True AND False 将其短路。
In other words, I'd like an 'Exclude Filter' that when 'Yes' is selected it leaves out the current week and when 'No' is checked, everything is shown.
我确定这是一件很傻的事情...也许是计算字段或是/否开关...
有什么帮助吗?
【问题讨论】:
标签: tableau-api calculated-field datefilter