<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Let's say I have two layers with the following attributes:<br>
    Layer A - SOVEREIGNT, Field2, Field3, ...<br>
    Layer B - Country_Region, Confirmed, ...<br>
    <br>
    I want to aggregate the Confirmed field of Layer B into Layer A. <br>
    I try to create a virtual field in Layer A with the expression<br>
         aggregate( 'B','sum', "Confirmed", "Country_Region"  ILIKE 
    attribute($currentfeature, 'SOVEREIGNT'))<br>
    but the value is always zero. <br>
    <br>
    What am I not understanding?<br>
    Thanks<br>
    <br>
    David<br>
    <br>
    <br>
    <br>
  </body>
</html>