Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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.
Solved! Go to Solution.
Hi @nabilassellalou ,
Assuming you want to count the rows in Moment Mains that contain M1 or M4 and which value in Confirmite Mains is Oui (as you did not provide a sample result), try this formula. Replace M1 with M4 if computing for M4.
M1 =
CALCULATE (
COUNTROWS ( Feuil1 ),
FILTER (
ALLEXCEPT ( Feuil1, Feuil1[ID] ),
CONTAINSSTRING ( Feuil1[Moment mains], "M1" )
&& Feuil1[Conformité mains] = "Oui"
)
)
I cant post table
I post images of columns of the used table. I would like to count the number of yes for a single M1 or M4 for same identifier
This is just a sample formula based on the information provided.
CALCULATE (
COUNTROWS ( 'table' ),
'table'[M1 column] = "yes",
'table'[M4 column] = "yes"
)
If this doesn't address your question, please provide a workable sample data (not an image) and your expected result from that sample data.
Not images please. You can copy a table and paste it here.
have email to send table?
You can post a link to a cloud storage like One/Google Drive or DropBox.
link is not public
Its public now
Hi @nabilassellalou ,
Assuming you want to count the rows in Moment Mains that contain M1 or M4 and which value in Confirmite Mains is Oui (as you did not provide a sample result), try this formula. Replace M1 with M4 if computing for M4.
M1 =
CALCULATE (
COUNTROWS ( Feuil1 ),
FILTER (
ALLEXCEPT ( Feuil1, Feuil1[ID] ),
CONTAINSSTRING ( Feuil1[Moment mains], "M1" )
&& Feuil1[Conformité mains] = "Oui"
)
)
Thank you, it's done.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 56 | |
| 43 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 108 | |
| 44 | |
| 32 | |
| 24 |