Forum Discussion
Oros
2 years agoPost Prodigy
DistincCount with Filter
Hello, I have a measure that works using DISTINCOUNTNOBLANK. How do you add a filter to this measure, for example, ONLY distinct count "the product number that starts in number 1 and 2"? Thanks...
- 2 years ago
The solution will works. Please try copy it carefully. Then click accept solution. Thanks.
Answer =VAR tempfile = FILTER('yourtable',NOT LEFT('yourtable'[PRODUCT NUMBER],1) IN {"2","3"})RETURNCALCULATE(DISTINCTCOUNT('yourtable'[PRODUCT NUMBER]),tempfile)
Oros
2 years agoPost Prodigy
speedramps
2 years agoSuper User
Thanks Oros for accepting the solution.
Please quote @speedramps in any future questions and I will will receive an automated notification and try resolve it.
Always try provide example input data, desired output and clear step by step description. Provide input date as a table and not a picture so we can import it and build a soluton. Thanks