Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Yintak
Contributor II
Contributor II

2 data field results match, and return result from a 3rd data field

Good day

I am building up chart expressions for my team, I have a question:

as the subject title suggests, I am constructing a logic that allows me to match 2 data field results, and then return a result from the 3rd data field, i.e.

CountrySales PersonTurnover
FranceThierryEUR 5,000
FranceHugoEUR 2,500
GermanyJulianEUR 3,200
ItalyAlex

EUR 2,000

 

if([Country] = 'France' and [Sales Person] = 'Thierry', [Turnover])

Should the above expression be written this way?
Thank you for your help in advance.

2 Replies
tresesco
MVP
MVP

Your expression looks good. If you are facing any challenge with this, try to explain the same.
Yintak
Contributor II
Contributor II
Author

Hi @tresesco 

Thanks for confirming, I have a separate question:

Country ToCountry FromSales PersonTurnover
FranceFranceHugoEUR 500
FranceGermanyJulianEUR 600
GermanyGermanyMarcoEUR 2,500
ItalyUK

Michael

EUR 4,500

 

Will we be able to construct an expression like this:

if([Country To] = [Country From], [Sales Person])

sum(if([Country To] = [Country From], [Turnover]))

Thank you!