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

Announcements
Now accepting applications for the Qlik Luminary and Partner Ambassador Programs: Apply by July 6!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Counting the distinct values

Counting of distinct concatenated values of Address line, State, Country, Pincode.

[Sheet2]:

LOAD

[Name],

[Bank Acc Number],

[Address line],

[State],

[Country],

[Pincode],

    Count(DISTINCT [Address line]&[State]&[Country]&[Pincode]) as count1,

    If(count1>1, [Name]),

    [Phone],

APPLYMAP( '__countryCodeIsoThree2Polygon', UPPER([Country]), '-') AS [Sheet2.Country_GeoInfo]

FROM [lib://Qlik Dashboards/Test_file.xlsx]

(ooxml, embedded labels, table is Sheet2);

1 Reply
agigliotti
MVP
MVP

maybe this:

[Sheet2]:

LOAD *,

If(count1>1, [Name]);

LOAD

[Name],

[Bank Acc Number],

[Address line],

[State],

[Country],

[Pincode],

    Count(DISTINCT [Address line]&[State]&[Country]&[Pincode]) as count1,

    [Phone],

APPLYMAP( '__countryCodeIsoThree2Polygon', UPPER([Country]), '-') AS [Sheet2.Country_GeoInfo]

FROM [lib://Qlik Dashboards/Test_file.xlsx]

(ooxml, embedded labels, table is Sheet2);

The Power of shining a light on the dark side of your data.
Follow me on my LinkedIn | Know Gamma Informatica at gammainformatica.it