Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to identify primary key in a table seperated by comma.

Dear Friends

I have two input table

Table 1:

Here Supplier ID is numeric field where mutiple supplier linked with the same contract are enter using comma.

Contract IDSupplier IDProject Status
1232Green
1451,4,6,7Yellow
1673,8,9Red

Table 2:

Here for every supplier ID the respective article & spend is mentioned.

Supplier IDArticleSpend
11234100
11344100
11454100
21564100
21674100
31784100
31894100
42004100
52114100
62224100
62334100
72444100
72554100
82664100
92774100
92884100

I want to

  • count no of article as per contract id ( so it should count the artcle number for all supplier seperated by comma)
  • Sum Spend as per contract id

I am not able to connect the two table as the data in table 1 is seprated by comma & hence not acting as a primary key.

Please help me in case if there is a way around to deal with such issues.

Many Thanks

Best Regards

Rahul

10 Replies
sujeetsingh
Master III
Master III

hi,

just in place of INLINE CODE you can take a table from server as

Table1:

load

sql select*********

from dbo.Order;

Ok

And if not cleare then give a sample QVW.