Forum Discussion
letsdothis
8 years agoNew Member
Count unique daily contacts
Hi all, I've tried to look at the forum for an answer, but without luck. So i'm hoping someone is able to help me. I have the following data example: YEAR TYPE COMPANY DAT...
- 8 years ago
Sorry, I replied to your post in haste. What I did was, I created a concatenated column:
Column = TableName[TYPE] & TableName[COMPANY] & TableName[DATE]
And then I created a measure using DISTINCTCOUNT:
Measure = Calculate(DISTINCTCOUNT(TableName[Column]),TableName[TYPE]="SALES")
and it worked. Please try.
bizbi
8 years agoAdvocate I
Hello,
Are you looking for the count considering unique combination of Company Name, Date and Type? Another way to say the same: Is this what you are looking for?
| YEAR | TYPE | COMPANY | DATE | COUNT |
| 2018 | SALES | Company1 | 01-01-2018 | 2 |
| 2018 | OFFER | Company1 | 01-01-2018 | 1 |
| 2018 | SALES | Company1 | 02-01-2018 | 1 |
| 2018 | SALES | Company2 | 02-01-2018 | 1 |
| 2018 | OFFER | Company2 | 03-01-2018 | 1 |
| 2017 | SALES | Company1 | 01-01-2017 | 1 |
| 2017 | SALES | Company2 | 01-01-2017 | 1 |
- letsdothis8 years agoNew Member
Thank you for your reply.
Sort of, I'm looking to remove duplicates for the combination of Company Name, Date and Type.
In your table the sum of all SALES in 2018 is 4, but I only want to show 3 (as there is a duplicate on date 2018-01-01).
Thanks again.