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
전문가
질문됨 6달 전35회 조회
1개 답변
0

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

profile picture
전문가
답변함 6달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠