TEXT 10
Add feature count to (legenda) of QGIS composer / atlas By mike on 7th November 2021 04:52:04 AM By mike on 7th November 2021 04:54:54 AM
  1. PJ00262 Ops QGIS - DB Bathy
  2. ================================================
  3.  
  4. aggregate( 'UXC_PJ00262_BCL_Nothing_Founds','count',"Gen_ID", intersects($geometry,map_get(item_variables( 'Map 1'),'map_extent')))
  5. aggregate('UXC-PJ00262-BCL-Nothing Founds','count',"Gen_ID",within($geometry,@atlas_geometry))
  6.  
  7. ================================================
  8. [% lpad(aggregate('UXC_PJ00262_BCL_Remaining_SOW_6e937867_97fa_4ea9_99cd_8935d9e8f0e4','count',"Gen_ID",within($geometry,map_get(item_variables('Map 1'),'map_extent')) AND "ID_Date" IS NOT NULL AND "RL_OAS" IS NOT NULL AND "Main or Additional" = 'Additional'),3,0) || ' x Additional Relocated (' || round(aggregate('UXC_PJ00262_BCL_Remaining_SOW_6e937867_97fa_4ea9_99cd_8935d9e8f0e4','count',"Gen_ID",within($geometry,map_get(item_variables('Map 1'),'map_extent')) AND "ID_Date" IS NOT NULL AND "RL_OAS" IS NOT NULL AND "Main or Additional" = 'Additional')/aggregate('UXC_PJ00262_BCL_Remaining_SOW_6e937867_97fa_4ea9_99cd_8935d9e8f0e4','count',"Gen_ID",within($geometry,map_get(item_variables('Map 1'),'map_extent')) AND "ID_Date" IS NOT NULL)*100,1) || '%)'%]

Hasta la pasta! is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

Raw Paste

Login or Register to edit or fork this paste. It's free.