Qlik Sense按钮选择错误(重复)

发布于 2025-02-10 08:17:46 字数 369 浏览 1 评论 0原文

我是Qlik Sense的新手,并为QLIK报告(表格图)做了我的第一个按钮。 按钮应选择“错误”,或用另一个单词选择同一个人是否有相同的疫苗接种日期(我的报告中的时间列)(我的报告中的附件图片中显示为“自己的...”)和选择它们显示这些所有者的所有信息,以突出显示重复日期。

从我的表格图表中的图片:“疫苗接种表图”

不幸的是,我不知道我应该为按钮使用什么动作(我一直在考虑“字段中的选择值”和“选择匹配搜索标准的选择值,但尚未弄清楚正确的表达式)。

这两个中的一个是正确的选择,还是我应该使用不同的按钮操作?我的表达式是我的,我知道您可以为按钮做很多操作。

I'm very new to Qlik Sense and doing my very first button for Qlik report (table chart).
Button should select "errors", or in another words, find out if there's the same vaccination date (Time column in my report) for the same person (Owner column shown as "Own..." in attachment picture from my report) and select them showing all the information of those owners highlighting the duplicate dates.

Picture from my table chart: Vaccinations Table Chart

Unfortunately I don't have any idea what actions I should use for the button (I have been considering "select values in the field" and "select values matching search criteria, but haven't figured out the right expressions).

Is the either one of those two the right choice or should I use different button action? What about the expression for the value. I have been considering if function. I know you can give many actions for the button. I presume I must make more than one action. Or is it possible to do my task with only one action?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

路还长,别太狂 2025-02-17 08:17:46

为了简单起见(和一般仪表板性能),您应该/可以通过在重新加载过程中创建一个其他字段(flag)来“求解”这些。

这个想法是标记“错误”中的记录。一旦可用字段/标志,前端作业就会变得更简单。在您的情况下,按钮/过滤器应在新字段中选择值。

示例脚本:

RawData:
Load * Inline [
Owner, Time, 
1    , 2019-03-08 09:26:31
1    , 2019-03-08 09:26:31
1    , 2019-04-08 07:13:57
2    , 2019-07-04 08:00:00
2    , 2020-02-20 08:55:00
2    , 2020-05-26 09:30:11
3    , 2020-07-16 04:55:00
4    , 2019-05-02 15:29:00
5    , 2019-07-10 09:45:27
5    , 2019-11-25 10:38:31
];

left join (RawData)

Errors:
// if the TimeCount column is greater than 1 then populate
// with True else False (no necessary to be True/False. can be anything)
// and join back to the main table
Load 
  Time,
  Owner,
  if(TimeCount > 1, True(), False()) as isError
;
// count Time values for each Owner
Load distinct
  count(Time) as TimeCount,
  Time,
  Owner
Resident
  RawData
Group By
  Time,
  Owner
;

重新加载后表将包含新的iserror字段,我们可以在其上过滤。

PS上面的脚本是解决此问题的一种方法。

  • 另一种方法是仅标记“错误”记录(其余的iserror将为null()
  • IM即将加入errors table back到原始桌子。在某些情况下,最好不要修改主表,而是将错误表分开,然后将其链接到主表

For simplicity (and general dashboard performance) you should/can "solve" these by creating an additional field (flag) during the reload.

The idea is to flag the records that are in "error". Once the field/flag is available then the frontend job becomes simpler. In your case the button/filter should just select value in the new field.

Example script:

RawData:
Load * Inline [
Owner, Time, 
1    , 2019-03-08 09:26:31
1    , 2019-03-08 09:26:31
1    , 2019-04-08 07:13:57
2    , 2019-07-04 08:00:00
2    , 2020-02-20 08:55:00
2    , 2020-05-26 09:30:11
3    , 2020-07-16 04:55:00
4    , 2019-05-02 15:29:00
5    , 2019-07-10 09:45:27
5    , 2019-11-25 10:38:31
];

left join (RawData)

Errors:
// if the TimeCount column is greater than 1 then populate
// with True else False (no necessary to be True/False. can be anything)
// and join back to the main table
Load 
  Time,
  Owner,
  if(TimeCount > 1, True(), False()) as isError
;
// count Time values for each Owner
Load distinct
  count(Time) as TimeCount,
  Time,
  Owner
Resident
  RawData
Group By
  Time,
  Owner
;

After the reload the table will contain the new isError field and we can filter on it.

Data table preview

P.S. The script above is one way to solve this.

  • Another approach is to flag only the "errored" records (for the rest the isError will be null())
  • im joining the Errors table back to the original table. In some cases might be better to not modify the main table but to keep the Errors table separate and just link it to the main table
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文