Forum Discussion
AndresOH
4 years agoFrequent Visitor
Count Rows When a Value occurs more than X times
Hi everyone! I'am trying to count the rows in a table only when the code of a customer appears more than "x" times. In this particular case the number is 2. Taking as an example the table below, th...
- 4 years ago
This is what I'm getting:
PaulDBrown
Community Champion
4 years agoOk. Try:
more than or equal 2 =
VAR _SelCust = MAX(Table[Customer])
VAR _CR = COUNTROWS(FILTER(ALLSELECTED(Table), Table[Customer] = _SelCust)
RETURN
COUNTROWS(FILTER(VALUES(Table[Customer]), _CR >= 2))
AndresOH
4 years agoFrequent Visitor
Thank you for your time Paul. This time it shows a blank always.