Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
girino777
Creator III
Creator III

Função: SubStringCount

Boa Tarde.!

Alguém poderia me dar uma explicação da função abaixo: 

=SubStringCount(Concat(Campo_Tabela,'|'), 'A')

Muito Obrigado.

Renato

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

=SubStringCount(Concat(Campo_Tabela,'|'), 'A')


Let me divide in two different function...

Concat(Campo_Tabela,'|')

This will concatenate all/selected values of Campo_Tabela and the seperator is |


=SubStringCount(Concat(Campo_Tabela,'|'), 'A')

SubstringCount will check that from the above concatenation result will have 'A' inside or not... It is is there, it will give you 1 (=True) or 0 (=False)....


Hope this will clear your doubt..



View solution in original post

2 Replies
MK_QSL
MVP
MVP

=SubStringCount(Concat(Campo_Tabela,'|'), 'A')


Let me divide in two different function...

Concat(Campo_Tabela,'|')

This will concatenate all/selected values of Campo_Tabela and the seperator is |


=SubStringCount(Concat(Campo_Tabela,'|'), 'A')

SubstringCount will check that from the above concatenation result will have 'A' inside or not... It is is there, it will give you 1 (=True) or 0 (=False)....


Hope this will clear your doubt..



girino777
Creator III
Creator III
Author

OK.!

Muito Obrigado.!!

Renato