Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

lookup values from another table, if values exist in another table, return 1 to get the filter show

Hi, experts, I have two tables, dimension table and fact table, I created a filter use column from dimension table, but fact table may not exist some values in dimension table, and I need to make sur...
  • v-jingzhang's avatar
    3 years ago

    Hi Anonymous 

     

    You may try this measure

    Measure = 
    var __values = VALUES('Fact'[region])
    return
    IF(SELECTEDVALUE('Dimension'[region]) IN __values, 1, 0)

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it. Highly appreciate your Kudos!