Forum Discussion
joglidden
Advocate III
8 years agocountrows, filter, contains
Can anyone tell me why this measure doesn't work? It returns (Blank), rather than 1830, as it should, and as the table with a visual-level filter with 'contains' does... M_Contractors = COUN...
- 8 years ago
HI joglidden
Try this one
M_Contractors = COUNTX( FILTER(WORKDAY_info, SEARCH("Contingent",WORKDAY_info[Job_Title],1,0) >0 ) , WORKDAY_info[Site_key] )
joglidden
Advocate III
8 years agoSo, here's something that did work. But I don't trust it, because it all depends on "Contingent" being in position 1. What if there is a space? Anyone have any suggestions for improvement?
M_Contractors =
COUNTX(
FILTER(WORKDAY_info,
FIND("Contingent",WORKDAY_info[Job_Title],1,0) = 1
)
,
WORKDAY_info[Site_key]
)
Phil_Seamark
Microsoft Employee
8 years agoHI joglidden
Try this one
M_Contractors =
COUNTX(
FILTER(WORKDAY_info,
SEARCH("Contingent",WORKDAY_info[Job_Title],1,0) >0
)
,
WORKDAY_info[Site_key]
)