<?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 Multiple drop down menus to filter plots/tables in ArcGIS Insights Questions</title>
    <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165662#M986</link>
    <description>&lt;P&gt;Good day all,&lt;/P&gt;&lt;P&gt;I am trying to create a web app in Insights Desktop such that the app has two drop down menus:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One for variable of interest&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Second for location&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As you can see I can select the location column in the 2nd drop down since it's a single column. However, I am unable to select multiple columns (each column representing a different variable, 5 columns/5 variables in my case).&lt;/P&gt;&lt;P&gt;If it it was possible to select multiple columns from a drop down menu, then for example, the user would first select the variable of interest let's say `avm`&amp;nbsp; that would then show `avm` values for different cities depending on the selection from the 2nd drop down menu. Then if the user selected the variable `flood factor` it would filter location values to `flood factor`.&lt;/P&gt;&lt;P&gt;Is it possible to select multiple columns for a drop down menu in Insights desktop? Such an option will save me from creating separate plots for each variable.&lt;/P&gt;&lt;P&gt;If not can you please have option in the next release?&lt;/P&gt;&lt;P&gt;As such an option will really make the app concise, neat and clean.&lt;/P&gt;&lt;P&gt;Please note that both the drop menus are based on the same dataset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_0-1650379421459.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39308i0AB53D46507E0BC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_0-1650379421459.png" alt="SaadullahBaloch_0-1650379421459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Apr 2022 15:02:40 GMT</pubDate>
    <dc:creator>Ed_</dc:creator>
    <dc:date>2022-04-19T15:02:40Z</dc:date>
    <item>
      <title>Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165662#M986</link>
      <description>&lt;P&gt;Good day all,&lt;/P&gt;&lt;P&gt;I am trying to create a web app in Insights Desktop such that the app has two drop down menus:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;One for variable of interest&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Second for location&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;As you can see I can select the location column in the 2nd drop down since it's a single column. However, I am unable to select multiple columns (each column representing a different variable, 5 columns/5 variables in my case).&lt;/P&gt;&lt;P&gt;If it it was possible to select multiple columns from a drop down menu, then for example, the user would first select the variable of interest let's say `avm`&amp;nbsp; that would then show `avm` values for different cities depending on the selection from the 2nd drop down menu. Then if the user selected the variable `flood factor` it would filter location values to `flood factor`.&lt;/P&gt;&lt;P&gt;Is it possible to select multiple columns for a drop down menu in Insights desktop? Such an option will save me from creating separate plots for each variable.&lt;/P&gt;&lt;P&gt;If not can you please have option in the next release?&lt;/P&gt;&lt;P&gt;As such an option will really make the app concise, neat and clean.&lt;/P&gt;&lt;P&gt;Please note that both the drop menus are based on the same dataset.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_0-1650379421459.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39308i0AB53D46507E0BC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_0-1650379421459.png" alt="SaadullahBaloch_0-1650379421459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:02:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165662#M986</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-19T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165687#M987</link>
      <description>&lt;P&gt;Hi Saadullah,&lt;/P&gt;&lt;P&gt;There is a way to filter using multiple columns, you would use the advanced filter option in the predefined filter.&amp;nbsp; You can select non null values for each column as a separate option in the filter, then go from there.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:04:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165687#M987</guid>
      <dc:creator>LauraBecht</dc:creator>
      <dc:date>2022-04-19T15:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165689#M988</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/273719"&gt;@LauraBecht&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the quick response, so what function should I use in the query?&amp;nbsp;&lt;/P&gt;&lt;P&gt;My columns of interest for the 1st drop down menu are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Flood Factor&lt;/LI&gt;&lt;LI&gt;avm&lt;/LI&gt;&lt;LI&gt;adapt_type&lt;/LI&gt;&lt;LI&gt;adapt_name&lt;/LI&gt;&lt;LI&gt;adapt_rp&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:32:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165689#M988</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-19T15:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165695#M989</link>
      <description>&lt;P&gt;I don't think i completely understand your goal.&amp;nbsp; You want to select a given city, then you want to select for combinations of these variables?&amp;nbsp; At one time dynamically?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165695#M989</guid>
      <dc:creator>LauraBecht</dc:creator>
      <dc:date>2022-04-19T15:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165701#M990</link>
      <description>&lt;OL&gt;&lt;LI&gt;So I want the user to be able to select a variable of interest out of the 5 total variables (5 columns). let's say the user selects `avm` out of the 5 available options from the 1st drop down menu.&lt;/LI&gt;&lt;LI&gt;Then the user will select the city (`cities` column) from the 2nd drop down menu. Let's say the user selects Coconut Creek.&lt;/LI&gt;&lt;LI&gt;The app will then filter the map and table to show `avm` values for Coconut Creek.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:24:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165701#M990</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-19T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165717#M991</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/518056"&gt;@Scott_Aulen&lt;/a&gt;&amp;nbsp;when you have the time, can you please also look into this?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165717#M991</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-19T15:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165733#M992</link>
      <description>&lt;P&gt;I've looked at this a bit but haven't been able to fully explore. &amp;nbsp;Hoping to find some time this afternoon.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:56:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165733#M992</guid>
      <dc:creator>Scott_Aulen</dc:creator>
      <dc:date>2022-04-19T15:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165736#M993</link>
      <description>&lt;P&gt;Cheers mate&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 15:59:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1165736#M993</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-19T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166200#M994</link>
      <description>&lt;P&gt;Good day&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/518056"&gt;@Scott_Aulen&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If the intended purpose in the post is not currently possible in Insights, should I post in Insights Ideas too?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 16:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166200#M994</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-20T16:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166262#M995</link>
      <description>&lt;P&gt;With a big hat tip to&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/29569"&gt;@WarrenDavison&lt;/a&gt;, here's what I suggest.&lt;/P&gt;&lt;P&gt;Predefined filters are designed to filter values within a column (i.e., variable) and not the variable itself. &amp;nbsp;To accomplish this we'll need to &lt;A href="https://community.esri.com/t5/arcgis-insights-questions/line-graph-multiple-series/m-p/1164751#M982" target="_self"&gt;reshape the data&lt;/A&gt; (in this case wide to tall) so that these variables become string values within the the dataset.&lt;/P&gt;&lt;P&gt;I've taken the following dataset which has 4 variables and transformed from wide to tall.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scott_Aulen_2-1650475603668.png" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39458iAF9B409C89B53B19/image-size/large?v=v2&amp;amp;px=999" role="button" title="Scott_Aulen_2-1650475603668.png" alt="Scott_Aulen_2-1650475603668.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This allows me to create two Predefined filters:&lt;/P&gt;&lt;P&gt;1. Variable filter (Population, MedianHomeValue, Employees, MedianAge)&lt;/P&gt;&lt;P&gt;2. State filter&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Scott_Aulen_3-1650476473401.gif" style="width: 777px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39459iD32739AC9DF0FB74/image-dimensions/777x385?v=v2" width="777" height="385" role="button" title="Scott_Aulen_3-1650476473401.gif" alt="Scott_Aulen_3-1650476473401.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is a fairly simple example but hopefully it illustrates the concept.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/554773"&gt;@Ed_&lt;/a&gt;&amp;nbsp;will this work for what you're trying to do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 17:45:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166262#M995</guid>
      <dc:creator>Scott_Aulen</dc:creator>
      <dc:date>2022-04-20T17:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166347#M996</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/518056"&gt;@Scott_Aulen&lt;/a&gt;, thank you for the detailed response. So, I need to transform the dataframe to either of the following two right, so which one of these would be the right approach 1or 2?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_0-1650481585957.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39476iDCD1F8AB737736CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_0-1650481585957.png" alt="SaadullahBaloch_0-1650481585957.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SaadullahBaloch_1-1650481718681.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39480i7EC14A1FAD7DBE43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="SaadullahBaloch_1-1650481718681.png" alt="SaadullahBaloch_1-1650481718681.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 19:09:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166347#M996</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-20T19:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166350#M997</link>
      <description>&lt;P&gt;That's correct, you'd want Option 2. &amp;nbsp;You want to move all three variables (FF, AL-2021, AL-2051) to one column (which you have labeled variable).&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 19:15:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166350#M997</guid>
      <dc:creator>Scott_Aulen</dc:creator>
      <dc:date>2022-04-20T19:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple drop down menus to filter plots/tables</title>
      <link>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166421#M998</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/518056"&gt;@Scott_Aulen&lt;/a&gt;&amp;nbsp;worked like a charm, I had to slightly modify the data as suggested in R. For that I had to use the `pivot_longer` function via `dplyr`. Thanks again.&lt;/P&gt;&lt;P&gt;Relevant code in R:&amp;nbsp;&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;&lt;LI-CODE lang="c"&gt;library(tidyverse)

df = df %&amp;gt;% select(long,
lat,
FF,
AL_2021,
AL_2051,
District,
City,
Zipcode) %&amp;gt;%
pivot_longer(c(FF,
AL_2021,
AL_2051),
names_to = "Variable",
values_to = "Value")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 21:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-insights-questions/multiple-drop-down-menus-to-filter-plots-tables/m-p/1166421#M998</guid>
      <dc:creator>Ed_</dc:creator>
      <dc:date>2022-04-20T21:33:39Z</dc:date>
    </item>
  </channel>
</rss>

