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: 
Ravi_Nagmal
Contributor III
Contributor III

Distinct count of dimension required

Hi All,

Please help me, how can i achieve below result in front end table.

Client ID Result required
ABCDE 1
ABCDE 0
ABCDE 0
ABCDE 0
ABCDE 0
ABCDE 0
ABCDE 0
BDSGE 1
BDSGE 0
HHDES 1
1 Solution

Accepted Solutions
Aditya_Chitale
Specialist
Specialist

Try:

=Count(Aggr(count(ClientID),ClientID))

 

Regards,

Aditya

View solution in original post

3 Replies
vincent_ardiet_
Specialist
Specialist

With no more informations about your datamodel, this is hard to answer.
By default, you will be able to obtain this one below, but else, you will need to use other fields to distinguish each [Client ID], like an order number. But else, what is the point to show the data like you are requesting? 

Client ID Result required
ABCDE 1
BDSGE 1
HHDES 1
Aditya_Chitale
Specialist
Specialist

Try:

=Count(Aggr(count(ClientID),ClientID))

 

Regards,

Aditya

Ahidhar
Creator III
Creator III

try this

if(ClientID=above(ClientID),0,1)

create one row identifier in script like Rowno() as rowno