Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Filter multiple rows against another table using less than

Apologies for the awkward title, I am struggling to work out how to do this or even word the problem. I have a feeling it should be fairly straightforward but I am hitting a roadblock. So I'm t...
  • MFelix's avatar
    MFelix
    5 years ago

    Hi Anonymous ,

     

    I have copy paste some lines on the contacts and changed the year this gave me the folllowing values per week:

     

    The cumulative values are the ones until that week (excluding current week) this table was made only making the use of the contacts table now making use of the measure I have sent earlier:

    Pre-Launch Contacts = 
    VAR ProductYW = FIRSTNONBLANK('Product Activity'[YW],0)
    
    RETURN
    
    CALCULATE(
        SUM('CS Data'[Contacts Answered]),
        FILTER(ALL('CS Data'[YW]),'CS Data'[YW] < ProductYW))

     

    You can see that when you cross filter this with the YW of the product dates you get the results you need.