Forum Discussion
Measure with filters
Hi,
I want a measure that gives me the distinct count of Client ID that have 2 or more products. My table looks like this:
| Client ID | Total products | Date |
| 1 | 1 | 8/30/2019 |
| 2 | 1 | 8/30/2019 |
| 3 | 2 | 8/30/2019 |
| 4 | 0 | 8/30/2019 |
| 5 | 3 | 8/29/2019 |
| 6 | 2 | 8/28/2019 |
| 7 | 1 | 8/5/2019 |
| 8 | 2 | 8/24/2019 |
| 9 | 1 | 8/24/2019 |
Thanks in advance,
IC
Hi,
Try this measure
=CALCULATE(DISTINCTCOUNT(Data[Client ID]),Data[Total Products]>=2)
Hope this helps.
3 Replies
- Nathaniel_C
Community Champion
Hi Anonymous ,
This should do it for you. My table is 'Table'
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel - Ashish_Mathur
Super User
Hi,
Try this measure
=CALCULATE(DISTINCTCOUNT(Data[Client ID]),Data[Total Products]>=2)
Hope this helps.
- v-piga-msft
Resident Rockstar
Hi Anonymous ,
Have you solved the problem?
If you have solved, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.
If you still need help, please share your desired output based on your data sample so that we could understand your logic better.
Best Regards,
Cherry