如何在数据加载编辑器中排除值
How to exclude values in the data load editor
我刚开始学习 QlikSense,我想知道如何在数据加载编辑器中排除值。
具体来说,我想从“订单”列中排除产品 X、产品 Y 和产品 Z。
我试过放置 where
语句,但它不起作用。
能想出几个办法来实现:
选项 1
只列出不需要的订单
Where
Orders <> 1
and Orders <> 2
and Orders <> 3
选项 2
使用match函数
Where
Match(Orders, 1, 2, 3) = 0
选项 3
使用exists函数根据另一个table
的记录过滤记录
OrdersToExclude:
Load
*
Inline [
Orders
1
2
3
];
FiteredData:
Load
*
Resident
RawData
Where
Not Exists( ToExclude, Orders )
;
Drop Table OrdersToExclude;
Table Join
也可以用
我刚开始学习 QlikSense,我想知道如何在数据加载编辑器中排除值。
具体来说,我想从“订单”列中排除产品 X、产品 Y 和产品 Z。
我试过放置 where
语句,但它不起作用。
能想出几个办法来实现:
选项 1
只列出不需要的订单
Where
Orders <> 1
and Orders <> 2
and Orders <> 3
选项 2
使用match函数
Where
Match(Orders, 1, 2, 3) = 0
选项 3
使用exists函数根据另一个table
的记录过滤记录OrdersToExclude:
Load
*
Inline [
Orders
1
2
3
];
FiteredData:
Load
*
Resident
RawData
Where
Not Exists( ToExclude, Orders )
;
Drop Table OrdersToExclude;
Table Join
也可以用