QuickSight - 我可以使用countif + contains吗?

0

【以下的问题经过翻译处理】 你好, 我想要统计一个字段(字符串)是否包含某个特定的文本。

我已经尝试过以下方法:

  • countIf({ID}, {Ticket type} 包含 'Wochenend')
  • distinct_countIf({ID}, {Ticket type} 类似于 '%Wochenend%')
  • distinct_countif({ID}, locate(toLower({Ticket type}), 'Wochenend') <> 0) ...但是都没有奏效。

希望可以得到社区的帮助!

谢谢, Axel

profile picture
ESPERTO
posta 5 mesi fa33 visualizzazioni
1 Risposta
0

【以下的回答经过翻译处理】 第三个选项几乎正确,但是您使用了toLower函数,但是用大写字母'W'而不是小写字母'w'检查了'Wochenend'。以下是一个示例:countIf(ID,locate({Ticket type},'Wochenend')<>0)

profile picture
ESPERTO
con risposta 5 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande