Forum Discussion

dosinkevic's avatar
dosinkevic
Frequent Visitor
8 years ago
Solved

CountIF text contains ID

Hello guys, I'm new to PorweBI and writing Query formulas is super hard for me. I'm trying to get same result as in GoogleSheets =COUNTIF(sales!L:L,"*"&CampaignID&"*") I have two queries: CAMPAIG...
  • Greg_Deckler's avatar
    8 years ago

    Create a column in your CAMPAIGN table like this:

     

    Column = 
    VAR __tmpTable = ADDCOLUMNS(ALL(crm),"Found",FIND([id],[camp_tracker],,-1))
    RETURN COUNTROWS(FILTER(__tmpTable,[Found]<>-1))