Forum Discussion
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.
- Anonymous2 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 TeamIf 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
- lbendlinSuper User
sounds good. Do you have a question on this? What have you tried and where are you stuck?
- AnonymousNot 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 TeamIf 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