我有大约数百万行的大数据。我必须生成需要循环数据表中所有行的字段。此循环使性能低下且不执行。
那么有什么方法或解决方案,特别是在Qlik Sense上?
示例结构如下所示:
FOR Each a in FieldValueList('employee') ~~~~ about 1 million rows
For i = 1 to $(vdate) ~~~~ about 3 month, equivalent 90 days
find max and append to a table....
Next i
Next a;
谢谢
更快的方法应该是:
连接表达式类似于:
// do everything else before here
join (Employees) // assumes table called employees
load * resident [Employee dates] // assumes table holding dates called Employee dates
// clean up
drop table [Employee dates];
希望这可以帮助。
竿