|inputlookup file1.csv |search "field1"="RUN"
|eval Aperm = if( 'Perm / Cont' = "Permanent",FTE,0)
|eval Acont=if( 'Permanent / FTC' = "Cont",FTE,0)
|eval Bperm = if('Perm / Cont' = "Permanent",FTE,0)
|eval Cperm = if('Perm / Cont' = "Permanent",FTE,0)
|eval Bont=if('Permanent / FTC' = "Cont",FTE,0)
|eval Ccont=if('Permanent / FTC' = "Cont",FTE,0)
| stats sum(Aperm) as APERM sum(Acont) as ACONT sum(Bperm) as BPERM sum(Bcont) as BCONT sum(Cperm) as CPERM sum(Ccont) as CCONT BY "Area"
|APPENDCOLS[|inputlookup TechIndia.csv |search "SubDivision 5"=* "SubDivision 2" = "RUN"
|eval Dperm = if('Perm / Cont' = "Permanent",FTE,0)
|eval Dcont=if('Permanent / FTC' = "Cont",FTE,0) |stats sum(Dperm) as DERM sum(Dcont) as DCONT BY "Region" |fields DPERM DCONT]
In my output currently am getting all the required columns but unfortunately the DPERM and DCONT values are incorrect against the Area or Region. They dont show the corresponding values against the area.
The output should be
Area /Region | APERM | BPERM | CPERM |DPERM |ACONT|BCONT|CCONT|DCONT|Total PERM| Total CONT|
... View more