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: 
Anonymous
Not applicable

How to use field with multiple values

Hi,

I have a field which has multiple linking keys

Executive name     Role id

Mike                    2,3,45,67

Sam                    2,5,64,78

Role ids is linked to Roles Table where I come to know the roles

Role id          Role Name

1                    Sales

2                    HR

3                    Operations

etc

How should I link role id?

Will it take the values a separate numbers or as a string?

Thanks

Labels (1)
1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi

Try like this

Load subfield(Roleid,',') as Roleid, ExecutiveName from table1;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan
MVP
MVP

Hi

Try like this

Load subfield(Roleid,',') as Roleid, ExecutiveName from table1;

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Anonymous
Not applicable
Author

Thanks a lot.

It helped me solve one of my problem.

I have to use distinct when counting right?

I was also looking for answers to some other questions. But is it because I put it in "New to Qlikview" so no one is replying?

MayilVahanan
MVP
MVP

HI

Please use count(distinct roleid)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.