Forum Discussion

silverdale9999's avatar
4 years ago
Solved

Cross Referencing multiple linked values

First of all - struggling to come up with a useful title for this one so apologies in advance.   If anyone is struggling for ideas for fun on Saturday, might I suggest you consider this small probl...
  • v-yalanwu-msft's avatar
    4 years ago

    Hi, silverdale9999 ;

    You could create a measure,

    Measure = 
    var _contain=SUMMARIZE(FILTER(ALL('Table'),[Child] in ALLSELECTED(Master[List]) || [Parent] in ALLSELECTED(Master[List])),[Parent])
    return IF(MAX('Table'[Parent]) in _contain,"Yes","No")

    Or a column

    Column = 
    var _contain=SUMMARIZE(FILTER(ALL('Table'),[Child] in ALLSELECTED(Master[List]) || [Parent] in ALLSELECTED(Master[List])),[Parent])
    return IF([Parent] in _contain,"Yes","No")

    The final output is shown below:

    Best Regards,
    Community Support Team_ Yalan Wu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.