Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with Sum distinct

Hi,

I have the following working exp:

sum({$ <Type -= {'FLEET'}>} if(TD_Commision = [Commission Number],1))

the problem is, there could be repeated data where for example  TD_Commission can occur 20 times, and I am strugling how to add distinct funtion to it.

any ideas 

thanks in advance

1 Solution

Accepted Solutions
ToniKautto
Employee
Employee

What happens if you just add DISTINCT in the expression?

sum(DISTINCT {$ <Type -= {'FLEET'}>} if(TD_Commision = [Commission Number],1))

View solution in original post

1 Reply
ToniKautto
Employee
Employee

What happens if you just add DISTINCT in the expression?

sum(DISTINCT {$ <Type -= {'FLEET'}>} if(TD_Commision = [Commission Number],1))