Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Duplicate Values from Join

Hello,

I have this two tables that I joined but the values are duplicated. How can I divide the value 8.26 for every IMEI that occurs in the example?

Thank you.

1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Doru,

try

Sum(Value)/Count(DISTINCT TOTAL <ProductIMEI)

Regards,

Antonio

View solution in original post

4 Replies
adamdavi3s
Master
Master

I don't think they are duplicated, the data looks good to me.

In your test table you might just want to exclude where len(IMEI) <1

e.g. if(len(IMEI)<1,0,IMEI/Value)

Not applicable
Author

Hello Adam,

Thank you for your answer but the values are duplicated. For every IMEI the value should be 4.13(for this example).

antoniotiman
Master III
Master III

Hi Doru,

try

Sum(Value)/Count(DISTINCT TOTAL <ProductIMEI)

Regards,

Antonio

Not applicable
Author

Thank you Antonio