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

Wildmatching a value in a different column

Hi everyone,

I have spent 3 days on the following problem but not enough luck in finding the correct answer.  I have the following table as my source table. 

TABLE:

OppsOwnerValueTeam
A1Tony2500Tony;Bob;Helen
A2Tony10000Bob,George,Tony
A3Tony12000Helen;Tony
A4Tony45000Tony
A5Tony30000Tony
A6Tony30000George;Tony
A7Tony50000Tony
A12Steve12000Tony;Mike;Balao;Helen
A13Miara45000George;Mike;Helen
A15Bob30000Bob,George,Tony
A16Tony50000Sunny;Tony
A17Sunny30000George;Mike;Helen
A18Tony30000 

 

What i want to do is the following:

1: I want to do set analysis on the above table and make variables vTeam and vRep.

2: for vTeam, I want to sum values where a person exists in the Team column (NOT ON ITS OWN BUT IN A GROUP) but not in the Owner column. So for example if we took Tony as an example, his resulting table would like this and i only want the sum (in RED) value and not the table itself.

OppsOwnerValueTeam
A12Steve12000Tony;Mike;Balao;Helen
A15Bob30000Bob,George,Tony
  42000 

 

3: For vRep, I want to sum values where a person exists in the Owner column and in the Team column so for example if we took Tony again, his table would look like the following, i only want the sum and not the actual table:

OppsOwnerValueTeam
A1Tony2500Tony;Bob;Helen
A2Tony10000Bob,George,Tony
A3Tony12000Helen;Tony
A4Tony45000Tony
A5Tony30000Tony
A6Tony30000George;Tony
A7Tony50000Tony
A16Tony50000Sunny;Tony
A18Tony30000 
  259500 

 

UPDATE:

This is the results im looking for :

So, if i select tony, the value should sum up (where he exists in Owner and Team) 

Final Table:
Tony301500
Steve12000
Miara45000
Bob42500
Sunny80000

 

Side Note:

The reason i want this to be a set analysis is because i have this information in a pivot table along with targets and actuals. So, if i select tony from there, target and actuals show fine. Just the opps value is wrong. I was hoping to sum vRep+ vTeam to get the total value in that table.

Please let me know if you need more information.

Thank you

@sunny_talwar 

Labels (3)
12 Replies
Saravanan_Desingh

nice to hear about that

waleeed_mahmood
Creator
Creator
Author

Thank you so much for your help @Saravanan_Desingh .

It’s really appreciated!

Saravanan_Desingh

you welcome