Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Check object in many table whether it is in masterdata table

Hi All,

 

I have a transaction table called "Activities" and a Master data table called "projects".

 

Sometimes new projects are added in the activities table and I need to know so I can update the master data table. In the example. I added project 8 in activities table.

 

Approach:

Created new table

Find new addition = DISTINCT(Activities[ProjectName])

The following fomula gives me number of transactions in activities table.

The other around = SUMX('Activities', FIND('Find new addition'[ProjectName],'Activities'[ProjectName],,0))

 

What I would like to see is a boolean (true/false) whether project X is in the master data. So far, youtube tutorials are working from the one-side table. So I dont know the approach when working in the many table. Or is it not recommended? If so, how should I tackle it?

 

Link file

  • Hi Anonymous 

     

    You can add the following column in 'Find new addition' table. 

    Column 2 = IF('Find new addition'[ProjectName] IN VALUES(ProjectList[ProjectName]),TRUE(),FALSE())

     

    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!

4 Replies

  • v-jingzhang's avatar
    v-jingzhang
    Community Support

    Hi Anonymous 

     

    You can add the following column in 'Find new addition' table. 

    Column 2 = IF('Find new addition'[ProjectName] IN VALUES(ProjectList[ProjectName]),TRUE(),FALSE())

     

    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!

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thank you! It is working as intended

    • Anonymous's avatar
      Anonymous
      Not applicable

      I added a new column in the project table. 

      The formula gave an error. The last expression of countX is not recognized.

      here is the Link to the file