<?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 Re: How do I get selected filters from JMP data filter and create a new columns based on that selection dynamically? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530311#M75348</link>
    <description>&lt;P&gt;maybe you could accomplish this this using a local data filter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a graph where I can select multiple or single levels from one of three Item columns.&lt;/P&gt;
&lt;P&gt;After selecting the options, then graph builder shows the selected statistic of the y-axis column to display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_0-1659619461591.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44558iDF285B8E4AFD0847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_0-1659619461591.png" alt="Byron_JMP_0-1659619461591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Aug 2022 13:25:34 GMT</pubDate>
    <dc:creator>Byron_JMP</dc:creator>
    <dc:date>2022-08-04T13:25:34Z</dc:date>
    <item>
      <title>How do I get selected filters from JMP data filter and create a new columns based on that selection dynamically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530056#M75328</link>
      <description>&lt;P&gt;I have a jsl application to make a plot with a formula column in group by. The formula column has been created based on concatenating values from other columns based on filtered data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to generate the formula column dynamically and update it whenever someone selects a new category from the data filter. So if &lt;STRONG&gt;colA&lt;/STRONG&gt; has two values &lt;STRONG&gt;Cat/Dogs&lt;/STRONG&gt; and &lt;STRONG&gt;colB&lt;/STRONG&gt; has two values &lt;STRONG&gt;tall/short&lt;/STRONG&gt;. The formula column would be the concatenation of both colA and colB.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When someone selects &lt;STRONG&gt;Cat&lt;/STRONG&gt; (from &lt;STRONG&gt;colA&lt;/STRONG&gt;) and &lt;STRONG&gt;short&lt;/STRONG&gt;(from &lt;STRONG&gt;colB&lt;/STRONG&gt;) the formula column should automatically get filled with "&lt;STRONG&gt;Cat_short&lt;/STRONG&gt;" .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When someone selects &lt;STRONG&gt;Dogs&lt;/STRONG&gt; (from &lt;STRONG&gt;colA&lt;/STRONG&gt;) and tall (from &lt;STRONG&gt;colB&lt;/STRONG&gt;) the formula column should automatically get filled with "&lt;STRONG&gt;Dogs_tall&lt;/STRONG&gt;" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way my formula column in the overlay of graph builder should update dynamically whenever someone selects a category using data filter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping on this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jun 2023 11:26:40 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530056#M75328</guid>
      <dc:creator>ankitgssingh</dc:creator>
      <dc:date>2023-06-11T11:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get selected filters from JMP data filter and create a new columns based on that selection dynamically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530244#M75343</link>
      <description>&lt;P&gt;Sounds demanding. Since I am not even a mediocre scripter, I can only point you into the direction of the &lt;A href="https://community.jmp.com/t5/JMP-Scripting-Users-Group/2022-Q1-MakeOverChallenge-Action-on-mouse-click-in-various-ways/m-p/461025" target="_self"&gt;2022_Q1 Makeover Challenge of the JMP Scripters Club&lt;/A&gt;. Maybe Challenge C is pertinent to your problem?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 11:58:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530244#M75343</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2022-08-04T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get selected filters from JMP data filter and create a new columns based on that selection dynamically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530311#M75348</link>
      <description>&lt;P&gt;maybe you could accomplish this this using a local data filter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a graph where I can select multiple or single levels from one of three Item columns.&lt;/P&gt;
&lt;P&gt;After selecting the options, then graph builder shows the selected statistic of the y-axis column to display.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Byron_JMP_0-1659619461591.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44558iDF285B8E4AFD0847/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Byron_JMP_0-1659619461591.png" alt="Byron_JMP_0-1659619461591.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 13:25:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530311#M75348</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-08-04T13:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get selected filters from JMP data filter and create a new columns based on that selection dynamically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530415#M75361</link>
      <description>&lt;P&gt;Thank you for your answer. However this does not answer my question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If in your example, you create a categorical formula column based on the other columns. Add that formula column to the Overlay in graph builder.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q) Now if someone selects some other category in the data filter, the formula column should update and also the graph should update.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2022 15:30:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530415#M75361</guid>
      <dc:creator>ankitgssingh</dc:creator>
      <dc:date>2022-08-04T15:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get selected filters from JMP data filter and create a new columns based on that selection dynamically?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530826#M75399</link>
      <description>&lt;P&gt;Having tried to better understand this problem, I think it is either too hard or just not well enough defined.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/27961"&gt;@ankitgssingh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... The formula column has been created based on concatenating values from other columns based on filtered data.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I am having an issue with the "based on filtered data". In the file you attached, the formula column is based on two other columns, &lt;STRONG&gt;:species&lt;/STRONG&gt; and &lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;season&lt;/STRONG&gt;, but no filters are involved here. (But maybe that point is not important at all. Just felt I had to point out an incosistency.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/27961"&gt;@ankitgssingh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;SPAN&gt;... I want to generate the formula column dynamically and update it whenever someone selects a new category from the data filter. ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When someone selects &lt;STRONG&gt;Cat&lt;/STRONG&gt; (from &lt;STRONG&gt;colA&lt;/STRONG&gt;) and &lt;STRONG&gt;short&lt;/STRONG&gt;(from &lt;STRONG&gt;colB&lt;/STRONG&gt;) the formula column should automatically get filled with "&lt;STRONG&gt;Cat_short&lt;/STRONG&gt;" .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When someone selects &lt;STRONG&gt;Dogs&lt;/STRONG&gt; (from &lt;STRONG&gt;colA&lt;/STRONG&gt;) and tall (from &lt;STRONG&gt;colB&lt;/STRONG&gt;) the formula column should automatically get filled with "&lt;STRONG&gt;Dogs_tall&lt;/STRONG&gt;" .&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Why would you in this situation, i.e., when filtering, for example, in Graph Builder, want to make changes to your data table? Your column for &lt;STRONG&gt;:&lt;/STRONG&gt;&lt;STRONG&gt;species&lt;/STRONG&gt; contains two entries (FOX, COYOTE). Your column for &lt;STRONG&gt;:season&lt;/STRONG&gt; contains four entries (fall, winter spring, summer). Having read the above description again and again, I still can't see anything else than a wish to overwrite the entire formula column with a string composed of the current filter settings. How would this column still be connected to the original data table?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/27961"&gt;@ankitgssingh&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;This way my formula column in the overlay of graph builder should update dynamically whenever someone selects a category using data filter.&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you create just some plot from your table using Graph Builder and add &lt;STRONG&gt;:species&lt;/STRONG&gt; as well as &lt;STRONG&gt;:season&lt;/STRONG&gt; to the local data filters, while using the &lt;STRONG&gt;:Combined_Name&lt;/STRONG&gt; column in the Overlay field, you will see that the legend is updated with the filter selection. (See screenshot below.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ressel_1-1659702737688.png" style="width: 1122px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44596i46A70E3333B2578C/image-dimensions/1122x298?v=v2" width="1122" height="298" role="button" title="Ressel_1-1659702737688.png" alt="Ressel_1-1659702737688.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the above screenshot example, I am therefore wondering what would be the benefit of filling up the formula column (&lt;STRONG&gt;:Combined_Name&lt;/STRONG&gt;) with the filter selections made.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2022 12:37:00 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-I-get-selected-filters-from-JMP-data-filter-and-create-a/m-p/530826#M75399</guid>
      <dc:creator>Ressel</dc:creator>
      <dc:date>2022-08-05T12:37:00Z</dc:date>
    </item>
  </channel>
</rss>

