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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
nareshthavidishetty
Creator III
Creator III

field values

Hi all ,

I have a field  datasource and values in it is

airtel

airtel 3mbps

airtel 5mbps

vodafone 3mbps

voda

vodafone

now i want to show

airtel

airtel 3mbps

airtel 5mbps  all should be as one unique name airtel so as vodafone

can anyone help me

Labels (1)
7 Replies
Anil_Babu_Samineni
MVP
MVP

Finally, How you want to see in output?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
nareshthavidishetty
Creator III
Creator III
Author

airtel

vodafone

bsnl

aircel

like this i want my output

prma7799
Master III
Master III

Please share example output...

nareshthavidishetty
Creator III
Creator III
Author

I have a field  datasource and values in it is

datasource:

airtel

airtel 3mbps

airtel 5mbps

vodafone 3mbps

voda

vodafone

aircel 5mbps

aircel

aircel 3mbps

bsnl 2mbps

bsnl

output should be

datasource:

airtel

vodafone

aircel

bsnl

Chanty4u
MVP
MVP

am not sure but try this.

Network:

load * Inline [

Data

airtel

airtel 3mbps

airtel 5mbps

vodafone 3mbps

voda

vodafone

];

LOAD *

, subfield( Data,' ',1) as firstWord

Resident Network;

dta.PNG

qlikview979
Specialist
Specialist

Hi

Do like this

sunfield(datasource,' ',1) as datasource

Anil_Babu_Samineni
MVP
MVP

May be this?

LOAD datasource, If(SubStringCount(datasource,'airtel'),'airtel', If(SubStringCount(datasource,'voda'),'voda', If(SubStringCount(datasource,'bsnl'),'bsnl'))) as datasource1 Inline [

datasource

airtel

airtel 3mbps

airtel 5mbps

vodafone 3mbps

voda

vodafone

aircel 5mbps

aircel

aircel 3mbps

bsnl 2mbps

bsnl

];

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful