tableau 筛选后计算_Tableau-如何计算和筛选以前的工作日

tableau 筛选后计算

Objectives:

目标:

Use this procedure to filter data by the last business date rather than the maximum or current business date.
 
使用此过程可以按最后一个营业日期而不是最大或当前营业日期筛选数据。

Background: 

背景:


 

The problem is that it is sometimes necessary to compare data from the current business day to the prior business day.  The existing “yesterday” filter works if the business operates seven days a week or if the report is generated Tuesday through Friday.  However, if the report is generated on Monday and the business did not have any data from the weekend, then no data is returned in the report.

问题在于,有时有必要比较当前工作日和前一个工作日的数据。 如果企业每周运行7天,或者如果报表是从星期二到星期五生成的,则现有的“昨天”过滤器将起作用。 但是,如果报表是在星期一生成的,而企业在周末没有任何数据,则报表中不会返回任何数据。


 

To work around this issue, it is necessary to create some calculated fields to figure out the current business day and the previous business day.  After finding those dates, it is necessary to filter the data based on the prior business day.

要变通解决此问题,有必要创建一些计算的字段来计算当前工作日和上一个工作日。 找到这些日期之后,有必要根据前一个工作日过滤数据。

Logic:

逻辑:

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值