Forum Discussion
Anonymous
7 years agoNot applicable
Count based on multiple criteria
Hello, I am a newbie integrating Power BI at my workplace. Could you please help with a query to sum/count based on multiple criteria. I have a data set of each customer and Sales rep assigned ...
- 7 years ago
Hi Anonymous,
Please create a calculated column with below formula:
Count of Sales Unit = CALCULATE ( DISTINCTCOUNT ( Table[Customer] ), FILTER ( ALLEXCEPT ( Table, Table[Sales Rep] ), Table[Units Sold] >= 1 ) )Best regards,
Yuliana Gu
v-yulgu-msft
Microsoft Employee
7 years agoHi Anonymous,
Please create a calculated column with below formula:
Count of Sales Unit =
CALCULATE (
DISTINCTCOUNT ( Table[Customer] ),
FILTER ( ALLEXCEPT ( Table, Table[Sales Rep] ), Table[Units Sold] >= 1 )
)
Best regards,
Yuliana Gu