Question

create a lookup table

  • 8 April 2020
  • 2 replies
  • 55 views

Badge +1

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

Userlevel 5
Badge +25

The AttributeValueMapper is what you're looking for.

Userlevel 2
Badge +16

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