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

gefragt vor einem Jahr469 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen