Forum Discussion
Anonymous
7 years agoNot applicable
Count rows with condition
Hello guys, I'm newbie to PowerBI and I need some logical help. I've a table named Sheet1 with a colunm named Stock Quantity. Basically I want to count the rows that has negative stock number, s...
- 7 years ago
Anonymous
Is this what you want?
rownumber = CALCULATE(COUNTROWS(Sheet12),FILTER(Sheet12,Sheet12[quantity number]<0))
ryan_mayu
7 years agoSuper User
Anonymous
Is this what you want?
rownumber = CALCULATE(COUNTROWS(Sheet12),FILTER(Sheet12,Sheet12[quantity number]<0))
Anonymous
7 years agoNot applicable
Yes, thank you very much!