Forum Discussion
Anonymous
6 years agoNot applicable
CountRows where column A contains a string and column B = a string.
I have been driving myself crazy with this, and I've looked around and asked colleagues and I can't seem to get there. I am used to Power Apps syntax, but not DAX so I really need some help. I h...
mahoneypat
Microsoft Employee
6 years agoYou can try an expression like this:
New Measure =
COUNTROWS (
FILTER (
FILTER (
'Project Overview',
SEARCH ( 'Project Overview'[Project Name], "Mission",, 0 ) > 0
),
'Project Name'[CP] = "Missing CP"
)
)
The FILTERs are nested to improve performance if many rows (one column at a time).
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
Katja262373
Helper I
2 years agoDear Mahoneypat,
thank you for your solution. I've tried to apply COUNTROWS /FILTER combination in my calculation, but it didn't work for me.. could you advise maybe, what do I do wrong?
thank you in advance for your help!
Katia