Forum Discussion

Cromero3000's avatar
Cromero3000
Icon for Helper I rankHelper I
6 years ago
Solved

How to measure attendance

Hello team!, I'm no expert with DAX or doing measures and I'm starting to build a dashboard for attendance. Let me give you an example of what I need: * There are 5 modules * Each module has diffe...
  • v-juanli-msft's avatar
    6 years ago

    Hi Cromero3000 

    As tested, the "Assistance" table and "Disciples" table should modify their relatiosnhip as below:

     

    Then you could create a measure

    Discount =
    CALCULATE (
        DISTINCTCOUNT ( Assistance[Discipulo] ),
        FILTER (
            ALLSELECTED ( Assistance ),
            Assistance[Tema] = MAX ( Assistance[Tema] )
        )
    )
    

    Best Regards
    Maggie
    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.