Forum Discussion

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

DAX Requirement || HELP

Hi All, Need your help.   The input data is as follows: (Please note the input data tab)   https://drive.google.com/file/d/1xsrhMOGCSZNUAuCrMhw9Vj2DUeOja_QY/view   Requirement: basically base...
  • v-yingjl's avatar
    6 years ago

    Hi MyPowerbi2020 ,

    1. Create a [Clicker?] measure:

    Clicker? = 
    IF ( MAX ( 'InputData'[Clicked] ) = 1, "Clicker", "Non Clicker" )

    2. Create a new table which includes [Status] field:

     

    3. Create a [Count] measure:

    Count =
    CALCULATE (
        DISTINCTCOUNT ( InputData[Email] ),
        FILTER (
            ALL ( 'InputData'[Email] ),
            [Clicker?] IN DISTINCT ( 'Table'[Status] )
        )
    )
    

    You will get your expected result:

     

    Attached a sample file in the below, hopes to help you.

     

    Best Regards,
    Yingjie Li

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