{"id":2878,"date":"2023-05-16T19:31:43","date_gmt":"2023-05-17T02:31:43","guid":{"rendered":"https:\/\/doubleecpu.com\/?page_id=2878"},"modified":"2023-07-08T22:47:11","modified_gmt":"2023-07-09T05:47:11","slug":"multi-filter-selection","status":"publish","type":"page","link":"https:\/\/doubleecpu.com\/index.php\/multi-filter-selection\/","title":{"rendered":"Multi-Filter Selection"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Add Filter icon<\/h2>\n\n\n\n<p>Add Filter Icon then Set Boolean Variable true using OnSelect =Set(Show_Filter_Container, true). This will make the Container with Filter Values appear on the screen.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2023\/07\/image.png\" alt=\"\" class=\"wp-image-2894\" width=\"326\" height=\"662\"\/><\/figure>\n\n\n\n<p><br>Add Container and align to Filter Icon<br>adjust container colors to match branding of PowerApp<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"541\" height=\"331\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2023\/07\/image-1.png\" alt=\"\" class=\"wp-image-2896\"\/><\/figure>\n\n\n\n<p>Set Container Property Visible to Boolean variable (Show_Filter_Container)<br>Copy and paste Filter icon inside of container and adjust colors to match branding of PowerApp (*Existing icon can be copied and pasted to use previously set colors).  <\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1380\" height=\"684\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2023\/07\/image-3.png\" alt=\"\" class=\"wp-image-2898\"\/><\/figure>\n\n\n\n<p>Change AccesibleLabel and Tooltip = &#8220;Close Filter Pop Up&#8221; and  OnSelect = Set(Boolean_Variable, false) to hide container<br>This will enable filter to pop to become visible or be hidden<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Gallery to display Filter_Type<\/h2>\n\n\n\n<p>Create a collection for selecting Filter_Type and Add &#8220;Show_Filter_Type&#8221; column default value to true<br>; ClearCollect(Collection_Filter_Type, AddColumns(Distinct(List_Rocket_Data, Title), &#8220;Show_Filter_Type&#8221;, true))<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1366\" height=\"283\" src=\"https:\/\/doubleecpu.com\/wp-content\/uploads\/2023\/07\/image-6.png\" alt=\"\" class=\"wp-image-2903\"\/><\/figure>\n\n\n\n<p>Insert a blank vertical gallery then add a checkbox<br>Set checkbox size to match layout: font, size, colors<br>Set Template Size to fit data and Padding = 0 <br>Add Label on gallery using checkbox<br>lineup checkbox and gallery, resize to fit container<br>Set checkbox to false default, Text Filter_Type<br>Set OnCheck:<br>     Clear(Collection_Filter_Type)<br>     Collect(Collection_Filter_Type, Distinct(Filter_Type), <br>     AddColumns(&#8220;Show_Filter_Type&#8221;, true)<br>     Clear(Collection_SubFilter_Type)<br>     Collect(Collection_SubFilter_Type, Collection_App_SubFilter)<br>     AddColumns(Show_SubFilter, true)<br>To Clear Selection erase data then recreate<br>Set OnUnCheck:<br>     Clear(Collection_Filter_Type)<br>     Collect(Collection_Filter_Type, Distinct(Filter_Type), <br>     AddColumns(&#8220;Show_Filter_Type&#8221;, true)<br>     Clear(Collection_SubFilter_Type)<br>     Collect(Collection_SubFilter_Type, Collection_App_SubFilter)<br>     AddColumns(Show_SubFilter, true)<br><br>Add Checkbox for SubFilter, default false, Text = SubFilter<br>Set OnCheck: <br>     Clear(Collection_SubFilter)<br>     Collect(Collection_SubFilter, Collection_App_SubFilter) AddColumn(&#8220;Show_SubFilter&#8221;, true)<br>Set OnUncheck:<br>     Clear(Collection_SubFilter)<br>     Collect(Collection_SubFilter, Collection_App_SubFilter) AddColumn(&#8220;Show_SubFilter&#8221;, false)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Gallery to display SubFilter_Type<\/h2>\n\n\n\n<p>Add Gallery for SubFilter. Set Items to Collection_SubFilter_Type sorted by Filter_Type, Filter_Number<br>Add checkbox set default to Show_SubFilter, Text = SubFilter, Tooltip = &#8220;Select Sub Filter To Show&#8221;<br>Set OnCheck:<br>     Patch(Collection_SubFilter, ThisItem, {Show_SubFilter: true})<br>Set OnUnCheck:<br>     Patch(Collection_SubFilter, ThisItem, {Show_SubFilter: false})<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Date Selection to establish date filter<\/h2>\n\n\n\n<p>Add Date Picker, set default date = DataAdd(Today(), 365, TimeUnit.Days), Start Year = 2000, End = 2050<br>Add Button Rename Filter, Text=Filter<br>Set OnSelect:<br>    Clear(Collection_Filtered_Details)<br>    ForAll(Filter(Collection_SubFilter, Show_SubFilter)<br>          Collect(Collection_Filtered_Details<br>               , ClearCollect(Filtered_Sorted, Filtered)<br>               Filter(Collection_App_Details, Filter_Type =  Collection_App_Details[@Filter_Type], DatePicker1.SelectedDate &lt; Collection_App_Details[@Start_Date]<br>     }    )    )<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Add Filter icon Add Filter Icon then Set Boolean Variable true using OnSelect =Set(Show_Filter_Container, true). This will make the Container with Filter Values appear on the screen. Add Container and align to Filter Iconadjust container colors to match branding of PowerApp Set Container Property Visible to Boolean variable (Show_Filter_Container)Copy and paste Filter icon inside of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/doubleecpu.com\/index.php\/multi-filter-selection\/\" class=\"more-link\">Read more<span class=\"screen-reader-text\"> &#8220;Multi-Filter Selection&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-2878","page","type-page","status-publish","hentry"],"featured_media_urls":[],"_links":{"self":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/comments?post=2878"}],"version-history":[{"count":5,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2878\/revisions"}],"predecessor-version":[{"id":2904,"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/pages\/2878\/revisions\/2904"}],"wp:attachment":[{"href":"https:\/\/doubleecpu.com\/index.php\/wp-json\/wp\/v2\/media?parent=2878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}