Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Filter data based on unique value contained within column

Hello,   I have searched for an answer to no avail and am hoping that someone here may have some insight they can share.   I have two tables. Table A contains a large dataset of Campaigns with Re...
  • parry2k's avatar
    6 years ago

    Anonymous you can add a measure and then filter on this measure where measure value <> 0

    Filter Dimension = 
    VAR __selectedValue = SELECTEDVALUE ( Slicer[Slicer] )
    RETURN 
    CALCULATE 
    ( COUNTROWS ( 'Table' ), 
    CONTAINSSTRING ( 'Table'[Dimension A], __selectedValue ) 
    )

    Would appreciate Kudos 🙂 if my solution helped.