Forum Discussion
jakeryan56
Advocate II
8 years agoCount based on multiple conditions
Hi, I have a requirement that I am having trouble wrapping my mind around even though it is probably simple. I have a table called SalesData. It contains various attributes about a sale and belo...
Ashish_Mathur
Super User
8 years agoHi,
Try this measure
Invoices with 1 item sold = COUNTROWS(FILTER(SUMMARIZE(VALUES(Sales_Data[Invoice]),[Invoice],"ABCD",COUNTA(Sales_Data[Description])),[ABCD]=1))
Just change the filter condition to 2,3 etc. for computing other measures.
Hope this helps.