Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
asinghal0412
Partner - Creator
Partner - Creator

Display common rows of 2 fields

Hey Qlik Community,

I have 3 fields: Server, Last login, Email.

In 'server'  value is {JP, IT}

In 'last login' value is {Never}

I want to create a measure in a table chart object (using set analysis) in which I display the common 'Email' of records

whose ('last login' is 'Never' and 'Server' is 'JP') and

whose ('last login' is 'Never' and 'Server' is 'IT'.)

If the question is unclear please let me know.

Thanks,

AS

 

 

1 Solution

Accepted Solutions
MayilVahanan

HI,

Where u want to display the email list?
If its KPI, try like this

Concat({<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email, ',')

Filter:

Aggr(Only({<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email), Email)

Straight table:

Dim: Email

Exp: Count({<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

7 Replies
MayilVahanan

HI

Might be, try like below in set analysis

{<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>}

* is intersection
+ is for addition

Depends on ur requirement, you can change it.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
asinghal0412
Partner - Creator
Partner - Creator
Author

thanks, Mayil, can you write the whole expression?

MayilVahanan

HI 

Try like below

Count{<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
asinghal0412
Partner - Creator
Partner - Creator
Author

Thanks Mayil,

But the above code will return the Count of the common 'email' rows, but I want the list of the common 'email'.

Can you alter the code for that?

AS

MayilVahanan

HI,

Where u want to display the email list?
If its KPI, try like this

Concat({<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email, ',')

Filter:

Aggr(Only({<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email), Email)

Straight table:

Dim: Email

Exp: Count({<LastLogn={'Never'}, Server={'JP'}>*<LastLogn={'Never'}, Server={'IT'}>} Distinct Email)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
asinghal0412
Partner - Creator
Partner - Creator
Author

Thanks, Mayil, it solves the issue! Have a great day!

Akash

MayilVahanan

Happy to know that, finally ur issue resolved 😀

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.