I have two shapefile files "A" and "B" loaded in QGIS 3.22.
I would like to use a variable from one shapefile in the field calculator of another shapefile.
For file "A" I would like to use the variables ident, x1, y1, end1x and end1y to calculate a determinant (matrix) if the feature of "B" has the value of ident equal to "A" (B=A), in this case I want to use x2 and y2 from "B" in field calculator within A.
attribute table A
attribute table B
expression
if ident@B=ident@B then (x1*end1y*1)+(y1*1*x2)+(end1x*y2*1)-(x2*1*end1y)-(y2*1*x1)-(end1x*y1*1) 

