Forum Discussion

adriansuteu's avatar
adriansuteu
Icon for Advocate I rankAdvocate I
6 years ago
Solved

Filter measure based on related table column value

Hello.   I have the following situation: I have a measure that needs to be filtered based on the column value from a related table. More specifically I want to exclude the amount of money from invo...
  • v-lili6-msft's avatar
    6 years ago

    Hi, adriansuteu 

    Just add just your formula as below:

    Amount without Contracts = CALCULATE([Amount Left (Selected)],FILTER(Courses,SEARCH("ctr",Courses[Invoice],1,0)=0))

    or

    Amount without Contracts 2 = CALCULATE([Amount Left (Selected)],FILTER(Courses,FIND("ctr",Courses[Invoice],1,0)=0))

    Result:

     

    Regards,

    Lin