Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Repeated word from a field

Hi All,

I need help to find repeated word from a field , I am using word cloud extension object to highlight repeated word.

Example

Reason

Work shift

Training not provided

No proper Training provided

Dissatisfied with work

Dissatisfied with Team

Now the word Training and Dissatisfied is appearing twice. I have to highlight in word cloud.

Thanks in advance

1 Solution

Accepted Solutions
jmvilaplanap
Specialist
Specialist

Hi

You can use substringcount function made a loop for each subfield(string, ' ') then you can count the number of repetitions for each word.

Regards

View solution in original post

4 Replies
jmvilaplanap
Specialist
Specialist

Hi

You can use substringcount function made a loop for each subfield(string, ' ') then you can count the number of repetitions for each word.

Regards

effinty2112
Master
Master

HI Shan,

Maybe

Phrases:

Load

RecNo() as ID,

SubField(Phrase,' ') as Word;

LOAD * Inline [

Phrase

Reason

Work shift

Training not provided

No proper Training provided

Dissatisfied with work

Dissatisfied with Team

];

Result:

Word count(Word)
Dissatisfied2
provided2
Training2
with2
No1
not1
proper1
Reason1
shift1
Team1
Work1
work1

Work appears twice, once as 'Work' and once as 'work'. In your script you could use Lower or Upper functions to correct for this.

cheers

Andrew

Anonymous
Not applicable
Author

Hi Jose,

Thanks for the reply, can you please send sample script

jmvilaplanap
Specialist
Specialist

Hi

I used the sample of Andrew, is easier than my answer.

Regards