根据画面中的相对日期范围过滤器计算总天数

时间:2018-06-18 19:10:28

标签: filter tableau

我有一个日期列,我用它创建了一个“相对日期”过滤器,如下所示:

enter image description here

现在我想创建一个度量如下:

SUM(value from another column)/total number of day in that date range.

有人可以帮助我如何创建这个措施吗?谢谢!

1 个答案:

答案 0 :(得分:0)

假设您的记录日期字段位于详细日期级别,您可以执行以下操作:

SUM(value from another column)/countd(record_date)