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 (part 2)

Hi

As the subject title suggests, I have a question below:

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!

2 Replies
saminea_ANZ
Creator
Creator

if([Country To] = [Country From], [Sales Person]) -- First condition will work

sum(if([Country To] = [Country From], [Turnover])) - Synthetically It is correct. But, Since in the data set value point consider as String. So, You can't aggregate like Sum never evaluate.

Yintak
Contributor II
Contributor II
Author

So if we first transform the data field to a numerical value, i am assuming that the sum function will then work.

Thanks!