如果两个字段具有非零值,则查找第三个字段
我的数据集 -
A B C
abc 0 12
ert 0 45
ghj 14 0
kli 56 78
qas 0 0
我想找到 A 的值,其中 B 和 C 的值合计不为零。
预期输出-
A B C
kli 56 78
我尝试过
- aggr(
sum({<[B]={"<>0"},[C]={"<>0"}>}A)
,[B], [C])
My dataset -
A B C
abc 0 12
ert 0 45
ghj 14 0
kli 56 78
qas 0 0
I want to find the values of A for which values of B and C together are non-zero.
Expected output-
A B C
kli 56 78
I tried-
aggr(
sum({<[B]={"<>0"},[C]={"<>0"}>}A)
,[B],[C])
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于您在哪里执行此操作,在数据加载中还是通过前面的集分析,但实际上这将在加载编辑器和表格上工作。
if("B" <> 0 和 "C" <> 0, '非零值', '零值')
我创建的示例
Depends where you are doing this, in the Data Load or through Set Analysis on the front, but really this will work on both the load editor and a table.
if("B" <> 0 and "C" <> 0, 'Non-Zero Value', 'Zero Value')
Example of what I created