Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
nabilassellalou
Regular Visitor

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.

MicrosoftTeams-image (148).png

MicrosoftTeams-image (149).png

  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @nabilassellalou 

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

vyaningymsft_0-1714384012535.png

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi, @nabilassellalou 

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

vyaningymsft_0-1714384012535.png

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

lbendlin
Super User
Super User

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

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.