Forum Discussion

Danielwood's avatar
Danielwood
Icon for Helper I rankHelper I
2 years ago
Solved

Count if certain text is in a string

Hi,   I am doing some measures in PBI desktop app, counting unique values where certain criteria is met. Can someone tell me what the parentheses is for searching for text within a cell.   I know...
  • DataNinja777's avatar
    2 years ago

    Hi Danielwood ,

    It appears that you are trying to count the rows where the dd/mm/yy is July month.  In that case, there are multiple ways to achive your required output.  One of them is to use calculated column like below to identify the rows to be counted.  

    Contains /07/ =
    IF ( CONTAINSSTRING ( 'YourTable'[Column], "/07/" ), "Contains /07/", BLANK () )

     Best regards,