Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
DataHound
Contributor II
Contributor II

IF Statement that returns the Email Address for the Top 10 Results

Hello All,

Goal: I would like to return a concatenated list of the email addresses associated with the top 10 results of a measure. 

I have a table that updates daily with the top 10 employees based on a measure. I would like to have qlik create a list of the email addresses associated with these employees. I have the Dimension of email in the data. 

I am thinking of placing my current formula for the calculation into an IF statement that returns the email addresses only if they  are in the Top 10 of the results for that measure.

Measure: (SUM(SALES))/(COUNT(CONTACTS))

EMAIL is the dimension 

Labels (1)
1 Solution

Accepted Solutions
rubenmarin

Hi, try with: Concat(Distinct {<Email={"=Rank(SUM(SALES))/(COUNT(CONTACTS))<=10"}>} Email,';')

View solution in original post

2 Replies
rubenmarin

Hi, try with: Concat(Distinct {<Email={"=Rank(SUM(SALES))/(COUNT(CONTACTS))<=10"}>} Email,';')

DataHound
Contributor II
Contributor II
Author

Thank you! This worked as my solution.