Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to avoid duplicates

Hi There,

i have the following formula on a table that has several same entries of "commande client". I want to avoid having duplicates so, if there are several lines with the same commande client it should count as 1.

Thank you for your help,

count({$<[TIMECURRENTSTATUT]={">5"},[Code]={"3","5","20","25","4"}, [Sélection KPI]={"1"},[Regroupement]={"PRO","FIL"}>}[Commande client])

1 Solution

Accepted Solutions
viveksingh
Creator III
Creator III

Hi Lawrence,

Can you try with Distinct

count(distinct {$<[TIMECURRENTSTATUT]={">5"},[Code]={"3","5","20","25","4"}, [Sélection KPI]={"1"},[Regroupement]={"PRO","FIL"}>}[Commande client])

View solution in original post

2 Replies
viveksingh
Creator III
Creator III

Hi Lawrence,

Can you try with Distinct

count(distinct {$<[TIMECURRENTSTATUT]={">5"},[Code]={"3","5","20","25","4"}, [Sélection KPI]={"1"},[Regroupement]={"PRO","FIL"}>}[Commande client])

Anonymous
Not applicable
Author

Thank you Vivek,

this works fine.

BR,

Lawrence