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

asked a year ago449 views
1 Answer
0
Accepted Answer

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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions