Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

DISTINCTCOUNT only on a certain condition

Hello,   I need to distinctcount the IDs when the status is only equal to "Pushed" or "Already pushed" (if an ID has a different status, don't count it). Here is a sample table : ID Status...
  • mahoneypat's avatar
    4 years ago

    Here is one measure expression that should work.

     

    Only Pushed =
    COUNTROWS(
        FILTER(
            VALUES( T3[ID] ),
            ISBLANK(
                CALCULATECOUNT( T3[ID] ), NOT T3[Status] IN { "Pushed", "Already Pushed" } )
            )
        )
    )

     

    Pat