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

feita há um ano469 visualizações
1 Resposta
0
Resposta aceita

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
respondido há um ano

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas