Forum Discussion

CaveOfWonders's avatar
CaveOfWonders
Icon for Helper IV rankHelper IV
6 years ago
Solved

Cannot Figure out how to replicate my Excel CountIFS formula

I have the following formula simplified from Excel; I cannot figure out how to replicate this in PowerBI. Any help would be appreciated. All the data is in one table in Power BI. The date qualificati...
  • v-lionel-msft's avatar
    v-lionel-msft
    6 years ago

    Hi CaveOfWonders ,


    Try this measure.

    Measure = 
    CALCULATE(
        COUNTROWS(Sheet1),
        FILTER(
            Sheet1,
            Sheet1[Finish date] >= DATE(2020, 1, 1) && Sheet1[Finish date] < DATE(2020, 2, 1) &&
            Sheet1[Actual Finish] >= DATE(2020, 1, 1) && Sheet1[Actual Finish] < DATE(2020, 2, 1) &&
            Sheet1[System] = "x" && Sheet1[Type] = "y"
        )
    )

     

    Best regards,
    Lionel Chen

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.