Skip to main content
Question

Querying multiple fields in a single table


Forum|alt.badge.img

Hi Community,

Based on the Figure 1 table, two fields exist as mentioned and I want to find the results as mentioned in Figure 2

I tried so many transformers and had no luck.

Figure 1

imageFigure 2

Figure 2Please help me with how to get the results.

5 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • July 3, 2022

Hi @sudhakary​ 

 

I simulated your case - Steps bellow:

  • Reading the excel file
  • Split the first position attribute (ID1) - AttributeSpliter
  • Using condition of search - Tester

Print_WorkspaceI attached the Workspace template (.fmwt).

 

 

Thanks in Advance,

Danilo


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • July 3, 2022
danilo_fme wrote:

Hi @sudhakary​ 

 

I simulated your case - Steps bellow:

  • Reading the excel file
  • Split the first position attribute (ID1) - AttributeSpliter
  • Using condition of search - Tester

Print_WorkspaceI attached the Workspace template (.fmwt).

 

 

Thanks in Advance,

Danilo

The results:

 

Results 


Forum|alt.badge.img
  • Author
  • July 4, 2022

Hi Danili_fme, thanks for your time and resolution.

I will narrate my requirement in detail as below.

In ID1 "111111" are having 4 duplicate values whereas the ID2 values are different for that group, I need to get the 1st record as a result, after this the ID2 "222222" need the 2nd value from ID2, and so on. Here I don't want to match the first character in ID1 and ID2.


Forum|alt.badge.img+2

@sudhakary​ can you include files instead of images and then we can experiment with the example data?


Forum|alt.badge.img
  • Author
  • July 5, 2022

@markatsafe, attached is the sample CSV file


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