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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set analysis

hello

I have a excel file like bellow:

name  telephone

aaa      2222222

bbb      8888888

bbb      9999999

aaa      2222222

i want to show the names with 2 different phone number like "bbb"

i would appreciate if anyone can help me in writing set analysis.

1 Solution

Accepted Solutions
jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

Chart: STraight Table

Dimension: Name

Expression: If(Count(Distinct telephone) > 1, Concat(telephone, ',', 0)

Regards,

Jagan.

View solution in original post

13 Replies
jagan
Partner - Champion III
Partner - Champion III

HI,

Try like this

Chart: STraight Table

Dimension: Name

Expression: If(Count(Distinct telephone) > 1, Concat(telephone, ',', 0)

Regards,

Jagan.

Kushal_Chawda

Create the straight table

Dimension : Name

Expression : Concat ({<Name={"=count(distinct telephone)>1"}>}Name,',')

martinien
Partner - Contributor III
Partner - Contributor III

Hi,

You can concat these simply in a text area with something like

=Concat(DISTINCT {<name={"=Count(telephone)>1"}>} name, ' - ' )

Also keep in mind than you can use the search string in listbox  to find these kind of things quickly :

2016-03-14 10_13_02-QlikView x64 - [C__Users_msorel_Documents_tests_plan de charge.qvw_].png

Martin

ramasaisaksoft

Hi Kabir,

PFA..

PradeepReddy
Specialist II
Specialist II

see the attachment...

Anonymous
Not applicable
Author

Thank you jagan it worked

Anonymous
Not applicable
Author

Jagan i missed one condition

we must not have different phone number in each month

fore example if a person have two different numbers in month Jan and Feb it's OK

How can i add month condition in expression?

Kushal_Chawda

I think you can use

If(aggr(Count(Distinct telephone),Month,Name) > 1, Concat(telephone, ',', 0)

Anonymous
Not applicable
Author

Unfortunately it didn't work.