Forum Discussion

ssjordan95's avatar
ssjordan95
New Member
3 years ago
Solved

Data puzzle with great value!

Hello! I am new to Power BI and trying to do somethign quite complicated - or so I believe. I have two columns, one with let's say 'numbers X'. I have another column with let's say 'numbers Y'. I wou...
  • tamerj1's avatar
    3 years ago

    Hi ssjordan95 
    Please find attached sample file with the solution

    Filter Measure = 
    VAR T1 = 
        VALUES ( 'Table'[numbers Y] )
    VAR T2 = 
        CALCULATETABLE ( 
            VALUES ( 'Table'[numbers Y] ),
            EXCEPT ( ALLSELECTED ( 'Table'[numbers X] ), VALUES ( 'Table'[numbers X] ) )
        )
    VAR T3 =
        INTERSECT ( T1, T2 )
    RETURN
        IF ( 
            NOT ISEMPTY ( T3 ),
            1
        )