Forum Discussion

MvdL's avatar
MvdL
New Member
6 years ago

Add Topic and keyword to main table based on second table

Hello!

Hopefully you can all help me, I have a main table with cells with large body of text, then I also have a second table with Topic and keywords fields. In the first table I want to create two new columns indicating the Topic and keyword from the second table. 

 

Here are examples:

Main:

IDDateText
12020-05-12Apples and Oranges are great
22020-05-13Random topic that is about vegetables
32020-05-14Bananas are the best
42020-05-14Oranges contain Vitamin C

 

Keywords:

TopicKeyword
Topic1Apples
Topic1Oranges
Topic1Bananas
Topic2Random

 

I want to change Main to:

IDDateTextTopicKeyword
12020-05-12Apples and Oranges are greatTopic1Apples
12020-05-12Apples and Oranges are greatTopic1Oranges
22020-05-13Random topic that is about vegetablesTopic2Random
32020-05-14Bananas are the bestTopic1Bananas
42020-05-14Oranges contain Vitamin CTopic1Oranges

Please note that "1" got duplicated, to also list the keyword Oranges separate. My goal with this is to have a slicer in the visualization that I can used to show all entries with just oranges.

 

Is this possible? I will also take suggestions if there a more elegant way to avoid duplication of the '1' entry 🙂 

 

Thanks in advance!

2 Replies