Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

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...
  • ryan_mayu's avatar
    7 years ago

    Anonymous

     

     

    Is this what you want?

     

    rownumber = CALCULATE(COUNTROWS(Sheet12),FILTER(Sheet12,Sheet12[quantity number]<0))