
Not applicable
2017-02-20
06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
597 Views
1 Solution
Accepted Solutions

Master III
2017-02-20
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Doru,
try
Sum(Value)/Count(DISTINCT TOTAL <Product> IMEI)
Regards,
Antonio
503 Views
4 Replies


Master
2017-02-20
07:16 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
503 Views

Not applicable
2017-02-20
07:52 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Adam,
Thank you for your answer but the values are duplicated. For every IMEI the value should be 4.13(for this example).
503 Views

Master III
2017-02-20
11:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Doru,
try
Sum(Value)/Count(DISTINCT TOTAL <Product> IMEI)
Regards,
Antonio
504 Views

Not applicable
2017-02-21
07:19 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you Antonio
503 Views
