Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

lookup values from another table

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...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Anonymous ,

     

    (1) We can create a calculated column.

    Column = IF('Fact Table'[region]=RELATED('Dimension table'[region]),1,0)

    (2)We can create a measure. 

    Measure = IF(SELECTEDVALUE('Fact Table'[Column])==BLANK(),0,1)

    (3) Then the result is as follows.

    Best Regards,

    Neeko Tang

    If this post  helps, then please consider  Accept it as the solution  to help the other members find it more quickly.