Forum Discussion

PowerUser39's avatar
PowerUser39
Frequent Visitor
2 years ago
Solved

How to count rows with specific value in Power Query

I have a DAX calculated column to count the rows of the table with specific value in a column and it works fine. Now I want the same to be written in Power Query's custom column but getting error.  ...
  • PowerUser39's avatar
    PowerUser39
    2 years ago

    Thanks Edhans.

     

    I am creating this Row count column #"Added Custom 8" only after the custom column #"Added Custom 7" I created previously:

     

    And I am creating the custom column from Add Column ribbon -> Custom Column and below is the code I have:

     

    And when I click OK and run, getting the below error:

     

     

     

     

  • edhans's avatar
    edhans
    2 years ago

    Text.Contains is wrong. It should be Text.Contains([Test], "No") 
    You have one argument with an equal sign. Get rid of that and replace with a comma, for 2 arguments.