QuickSight - Can I use countif + contains?

0

Hi, I'd like to count if a field (string) has a certain text included.

Already tried:

  • countIf({ID}, {Ticket type} contains 'Wochenend')
  • distinct_countIf({ID}, {Ticket type} like '%Wochenend%')
  • distinct_countif({ID}, locate(toLower({Ticket type}), 'Wochenend') <> 0) ...but nothing worked.

Would appreciate help from the community!

Many thanks, Axel

已提問 1 年前檢視次數 468 次
1 個回答
0
已接受的答案

The third option is almost correct but you have used toLower function and yet checked for 'Wochend' with 'W'(caps) instead of 'w' . Here is an example :countIf(ID,locate({Ticket type},'Wochenend')<>0)

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南