[英]TIBCO Spotfire: Cars in service since 3 weeks or more
I have a table of vehicles at service locations showing columns such as DAY, LICENSE, BOROUGH etc. I'd like to add a cross table showing the number of vehicles that have been serviced for 3 weeks or more.我有一个服务地点的车辆表,其中显示了诸如 DAY、LICENSE、BOROUGH 等列。我想添加一个交叉表,显示已服务了 3 周或更长时间的车辆数量。 I'm not sure what custom expression to use.
我不确定要使用什么自定义表达式。
Sample data:样本数据:
I hope your sample data isn't containing a bunch of legitmate license plates.我希望您的示例数据不包含一堆合法的车牌。 not the most compromising data but I would recommend blacking out or replacing them with test data if it isn't already.
不是最妥协的数据,但如果还没有,我建议将它们涂黑或用测试数据替换它们。
anyway.反正。 you're looking for the
DateDiff()
function.您正在寻找
DateDiff()
函数。 for example:例如:
If(DateDiff('day', Date(DateTimeNow()), [Date]) >= 21, "21 days or more", "less than 21 days")
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.