Forum Discussion
HenryJS
6 years agoPost Prodigy
COUNT IF Containts Key Word
Hi all,
How do I create a measure whichs Counts 'Ref' IF 'Contact Tags' contains the key words "Hiring Contact"?
Thanks,
Try like
countx(filter(table,table[Contact Tags]="Hiring Contact"),table[Contact Tags]) countx(filter(table,table[Ref]="Hiring Contact"),table[Contact Tags])- Anonymous6 years ago
Measure = CALCULATE(COUNT(Table1[Ref]),FILTER(Table1,[Contact Tag] ="Hiring Contact"))Btw I see "Hiring contact"in [Type], so can also try:
Measure = CALCULATE(COUNT(Table1[Ref]),FILTER(Table1,[Type] ="Hiring Contact"))Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- amitchandakSuper User
Try like
countx(filter(table,table[Contact Tags]="Hiring Contact"),table[Contact Tags]) countx(filter(table,table[Ref]="Hiring Contact"),table[Contact Tags]) - AnonymousNot applicable
Measure = CALCULATE(COUNT(Table1[Ref]),FILTER(Table1,[Contact Tag] ="Hiring Contact"))Btw I see "Hiring contact"in [Type], so can also try:
Measure = CALCULATE(COUNT(Table1[Ref]),FILTER(Table1,[Type] ="Hiring Contact"))Paul Zheng
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.