Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一份 WO 老化报告,我需要弄清楚以下信息:
有没有办法写一个if...else..then语句,让我计算每周的记录数?
if...else..then
当然。如果你想把星期作为列,它就像
(case when <your date range comparison> then work_order else null end)
您将为每个存储桶添加一个类似的新计算,并将聚合设置为计数。最棘手的部分可能是推导出你的周数。