Forum Discussion
Vallt
1 year agoFrequent Visitor
DAX distinctcount with a condition
Hello, I am new to DAX so I need help on this. To describe my problem simply I have a data table with first row "Item number", second row "customer number". For each sale of item XXXXX there is a...
- 1 year ago
Can try the below calculated column expression:
Result = CALCULATE(DISTINCTCOUNT('Table'[Customer number]),ALLEXCEPT('Table','Table'[Item number]))Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
xifeng_L
Super User
1 year agoCan try the below calculated column expression:
Result = CALCULATE(DISTINCTCOUNT('Table'[Customer number]),ALLEXCEPT('Table','Table'[Item number]))
Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !
Thank you~
Vallt
1 year agoFrequent Visitor
Thank you! Works just like I expected!