Forum Discussion

Rochejf's avatar
Rochejf
Frequent Visitor
3 years ago
Solved

Return yes when all rows are filled

Hi guys, I'm wondering whether this can be done in Powerbi?

 

Referring to the table below.

 

I have 3 sales orders each separate into different sales tasks. What I wish to do now is, when all sales tasks are fulfilled with a date filled in the sales date column, the completion will turn into yes. If none or not all sales task is not fulfilled, the completion will stay as No.

 

Let me know if such logic can be performed in Powerbi. Thanks!

 

Sales OrderSales TaskSales DateCompletion
SO111SO111/128-Jul-23No
SO111SO111/2 No
SO222SO222/128-Jul-23Yes
SO222SO222/228-Jul-23Yes
SO333SO333/128-Jul-23No
SO333SO333/2 No
SO333SO333/328-Jul-23No

 

 

 

 

 

 

6 Replies

  • Rochejf 

    you can create a new column

    Column = if(CALCULATE(count('Table (2)'[Sales Date]),ALLEXCEPT('Table (2)','Table (2)'[Sales Order]))=CALCULATE(count('Table (2)'[Sales Task]),ALLEXCEPT('Table (2)','Table (2)'[Sales Order])),"Y","N")

    • Rochejf's avatar
      Rochejf
      Frequent Visitor

      OMG, this actually works!!! Really appreciate your help!!!!!!