Forum Discussion

Longhorns2013's avatar
Longhorns2013
Regular Visitor
3 years ago
Solved

Lookup or Search Multi-Select Between Tables

Hi All,   I have been stuck on this for over a week now and could really use some help:   I have one data table that contains the following information:   Project ID Workstream ID Value ...
  • sturlaws's avatar
    3 years ago

    Hi, Longhorns2013,

     

    If you drop the relationship between your two tables, and write your measure like this:

    Measure =
    VAR _master =
        CALCULATETABLE ( VALUES ( Master[Project ID] ) )
    RETURN
        SUMX (
            CALCULATETABLE (
                Project,
                FILTER (
                    Project,
                    CONTAINS ( _master, Master[Project ID], Project[Project ID] )
                )
            ),
            Project[Value]
        )

     

     

    Cheers,
    Sturla

    If this post helps, then please consider Accepting it as the solution. Kudos are nice too.