Skip to main content
Question

create a lookup table


bubblebeb
Contributor
Forum|alt.badge.img+6

I want to create a reference table within the workspace so I don't have to import another data source. I feel like I am missing something easy.

 

I want to create a simple table of

RoleRateAdministrator£20Operative£30Manager£40Director£50

 

I can then join my data to it to get the rates.

I would usually write the table in excel then read it in a featuremerger to match the rates in.

I feel there must be a way to do this in FME rather than have to read the external data source. It must be more efficient.

 

Thanks

 

2 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

The AttributeValueMapper is what you're looking for.


erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • April 8, 2020

Another option would be to create an external Lookup table in for example Excel.

Then you can use the DatabaseJoiner transformer to look up the values.

That would allow you to change the Lookup table without having to open the workspace.

I know you were asking for an internal Lookup table and that would be the AttributeValueMapper as @redgeographics mentioned, but I have the experience the external Lookup table is easier to maintain.

Hope this helps.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings