<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic In ArcGIS Pro model builder, how do I pass number output of Get Field Value to an expression in Select Layer by Attribute? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/in-arcgis-pro-model-builder-how-do-i-pass-number/m-p/1675161#M7658</link>
    <description>&lt;P&gt;I am trying to automate the selection of polygons from a feature layer based on polygon area. Specifically, I need to select only thoes polygons whose area is greater than or equal to the median area of all polygons in the layer.&lt;/P&gt;&lt;P&gt;Because this workflow will be repeated with different datasets, the median will change each time and cannot be entered manually.&lt;/P&gt;&lt;P&gt;The screenshot below shows my current ModelBuilder flow. The Value box shows the median area for one of the several input polygon layers, which I want to pass into the Select Layer By Attribute tool.&lt;/P&gt;&lt;P&gt;What I’m unsure about is whether I can pass this median value directly into the tool’s expression parameter, or if I need an intermediate step to construct a full SQL expression string (e.g. "AREA_FIELD" &amp;gt;= median) that can then be passed into the Select Layer By Attribute tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oLfTeiA4.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146138iD6B02E320E0C36B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="oLfTeiA4.png" alt="oLfTeiA4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Dec 2025 18:13:34 GMT</pubDate>
    <dc:creator>MahreenKohkar</dc:creator>
    <dc:date>2025-12-29T18:13:34Z</dc:date>
    <item>
      <title>In ArcGIS Pro model builder, how do I pass number output of Get Field Value to an expression in Select Layer by Attribute?</title>
      <link>https://community.esri.com/t5/developers-questions/in-arcgis-pro-model-builder-how-do-i-pass-number/m-p/1675161#M7658</link>
      <description>&lt;P&gt;I am trying to automate the selection of polygons from a feature layer based on polygon area. Specifically, I need to select only thoes polygons whose area is greater than or equal to the median area of all polygons in the layer.&lt;/P&gt;&lt;P&gt;Because this workflow will be repeated with different datasets, the median will change each time and cannot be entered manually.&lt;/P&gt;&lt;P&gt;The screenshot below shows my current ModelBuilder flow. The Value box shows the median area for one of the several input polygon layers, which I want to pass into the Select Layer By Attribute tool.&lt;/P&gt;&lt;P&gt;What I’m unsure about is whether I can pass this median value directly into the tool’s expression parameter, or if I need an intermediate step to construct a full SQL expression string (e.g. "AREA_FIELD" &amp;gt;= median) that can then be passed into the Select Layer By Attribute tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oLfTeiA4.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146138iD6B02E320E0C36B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="oLfTeiA4.png" alt="oLfTeiA4.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 18:13:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/in-arcgis-pro-model-builder-how-do-i-pass-number/m-p/1675161#M7658</guid>
      <dc:creator>MahreenKohkar</dc:creator>
      <dc:date>2025-12-29T18:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: In ArcGIS Pro model builder, how do I pass number output of Get Field Value to an expression in Select Layer by Attribute?</title>
      <link>https://community.esri.com/t5/developers-questions/in-arcgis-pro-model-builder-how-do-i-pass-number/m-p/1675172#M7659</link>
      <description>&lt;P&gt;1. I would suggest renaming the variable to something like "MedValue".&lt;/P&gt;&lt;P&gt;2. Add a precondition that the variable must exist before the Select by Attribute tool runs.&lt;/P&gt;&lt;P&gt;3. Switch on the SQL toggle on the Select Layer by Attribute tool to enable you to edit the expression by typing rather than by drop-down menus.&lt;/P&gt;&lt;P&gt;4. In the editor, add the variable name wrapped in % signs to the expression. The expression would be something like:&lt;/P&gt;&lt;P&gt;Shape__Area &amp;gt; %MedVal%&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BobBooth1_0-1767033426157.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/146140iF1F031F1DBC617EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="BobBooth1_0-1767033426157.png" alt="BobBooth1_0-1767033426157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Dec 2025 18:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/in-arcgis-pro-model-builder-how-do-i-pass-number/m-p/1675172#M7659</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-12-29T18:39:37Z</dc:date>
    </item>
  </channel>
</rss>

