Forum Discussion
PSB
Helper III
3 years agoDAX to count values based on condition
I need count column. for same values in "Category" column, for example fruits but there are three different type of fruits in Product column, I need count as 3. In vegetable, there are two raws wit...
- 3 years ago
Try the following:
Count Column = CALCULATE(DISTINCTCOUNT(Product), ALLEXCEPT(Category)) - 3 years ago
I get this error. could you please share exact formula?
Too many arguments were passed to the DISTINCTCOUNT function. The maximum argument count for the function is 1.
- 3 years agoColumn = CALCULATE(DISTINCTCOUNT('Table'[Product]),ALLEXCEPT('Table','Table'[Category]))
vicky_
Super User
3 years agoTry the following:
Count Column = CALCULATE(DISTINCTCOUNT(Product), ALLEXCEPT(Category))
PSB
Helper III
3 years agoI get this error. could you please share exact formula?
Too many arguments were passed to the DISTINCTCOUNT function. The maximum argument count for the function is 1.
- PSB3 years ago
Helper III
Column = CALCULATE(DISTINCTCOUNT('Table'[Product]),ALLEXCEPT('Table','Table'[Category]))