Forum Discussion

nabilassellalou's avatar
nabilassellalou
Regular Visitor
2 years ago
Solved

DAX

I have a data table on several columns, I want to count the number of "yes" rows for a single M1 and M4 (another column) for the same identifier because there are several M1 and M4 which are repeated for the same identifier.

  

  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi, nabilassellalou 

    Thanks for lbendlin reply. You can refer to following measure.

    Rows = 
    CALCULATE (
        COUNTROWS ( 'Table 2' ),
        FILTER ( 'Table 2', 'Table 2'[Conformite mains] = "Oui" )
    )
    

     

    Best Regards,
    Yang
    Community Support Team

    If this does not work, could you please share some sample data without sensitive information and expected output.

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

2 Replies

  • sounds good. Do you have a question on this?  What have you tried and where are you stuck?

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi, nabilassellalou 

    Thanks for lbendlin reply. You can refer to following measure.

    Rows = 
    CALCULATE (
        COUNTROWS ( 'Table 2' ),
        FILTER ( 'Table 2', 'Table 2'[Conformite mains] = "Oui" )
    )
    

     

    Best Regards,
    Yang
    Community Support Team

    If this does not work, could you please share some sample data without sensitive information and expected output.

    If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

    How to get your questions answered quickly --  How to provide sample data in the Power BI Forum