{"id":21551,"date":"2019-12-31T06:16:33","date_gmt":"2019-12-31T06:16:33","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=21551"},"modified":"2022-06-14T15:07:51","modified_gmt":"2022-06-14T09:37:51","slug":"avoid-delegation-while-filtering-records-in-power-apps","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/12\/avoid-delegation-while-filtering-records-in-power-apps\/","title":{"rendered":"Avoid delegation while filtering records in Power Apps"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p>Delegation in Power Apps means process of retrieving data to the data source itself. This means Power Apps will retrieve small amount of data to make sure the performance is consistent. We often get delegation warning when we filter huge data source in Power Apps as shown in below screenshot.<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-21558\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"614\" height=\"561\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Avoid-delegation-while-filtering-records-in-Power-Apps.png 614w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/1Avoid-delegation-while-filtering-records-in-Power-Apps-300x274.png 300w\" sizes=\"(max-width: 614px) 100vw, 614px\" \/><\/p>\n<p>To avoid the delegation warning and to apply the filters in Power Apps here is a quick and easy way to achieve this. Instead of using filter formula on the datasets we can select view and avoid delegation warning. In our previous blog <a href=\"https:\/\/www.inogic.com\/blog\/2019\/06\/filter-records-powerapps-based-on-the-owner-of-the-record-in-dynamics-365-ce\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>, we have explored how to filter records in Power Apps based on the logged in user. Now using the same example let\u2019s filter the account gallery and avoid delegation warning in Power Apps in the simplest way.<\/p>\n<p><strong>1<\/strong>. You can create views in an entity using <a href=\"https:\/\/make.powerapps.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/make.Power Apps.com\/<\/a> and the view will be reflected in the Power Apps view section when you select the data source as that entity.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21557\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"1355\" height=\"475\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Avoid-delegation-while-filtering-records-in-Power-Apps.png 1355w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Avoid-delegation-while-filtering-records-in-Power-Apps-300x105.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Avoid-delegation-while-filtering-records-in-Power-Apps-768x269.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Avoid-delegation-while-filtering-records-in-Power-Apps-1024x359.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/2Avoid-delegation-while-filtering-records-in-Power-Apps-660x231.png 660w\" sizes=\"(max-width: 1355px) 100vw, 1355px\" \/><\/p>\n<p><strong>2<\/strong>. Select the entity and click on create view as shown in below screenshot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21556\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"1070\" height=\"462\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Avoid-delegation-while-filtering-records-in-Power-Apps.png 1070w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Avoid-delegation-while-filtering-records-in-Power-Apps-300x130.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Avoid-delegation-while-filtering-records-in-Power-Apps-768x332.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Avoid-delegation-while-filtering-records-in-Power-Apps-1024x442.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/3Avoid-delegation-while-filtering-records-in-Power-Apps-660x285.png 660w\" sizes=\"(max-width: 1070px) 100vw, 1070px\" \/><\/p>\n<p><strong>3<\/strong>. Now create a view with filter Owner equals to current user. Please refer the screenshot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21555\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"1424\" height=\"757\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Avoid-delegation-while-filtering-records-in-Power-Apps.png 1424w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Avoid-delegation-while-filtering-records-in-Power-Apps-300x159.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Avoid-delegation-while-filtering-records-in-Power-Apps-768x408.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Avoid-delegation-while-filtering-records-in-Power-Apps-1024x544.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/4Avoid-delegation-while-filtering-records-in-Power-Apps-660x351.png 660w\" sizes=\"(max-width: 1424px) 100vw, 1424px\" \/><\/p>\n<p><strong>4<\/strong>. Create a blank canvas app or canvas app with data. Add a gallery to the screen and select account as data source as shown in below screenshot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21554\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/5Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"1370\" height=\"621\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/5Avoid-delegation-while-filtering-records-in-Power-Apps.png 1370w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/5Avoid-delegation-while-filtering-records-in-Power-Apps-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/5Avoid-delegation-while-filtering-records-in-Power-Apps-768x348.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/5Avoid-delegation-while-filtering-records-in-Power-Apps-1024x464.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/5Avoid-delegation-while-filtering-records-in-Power-Apps-660x299.png 660w\" sizes=\"(max-width: 1370px) 100vw, 1370px\" \/><\/p>\n<p><strong>5<\/strong>. Now, in right side of the screen under the \u201cproperties\u201d section you have to select the view as shown in below screenshot:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21553\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/6Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"1403\" height=\"688\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/6Avoid-delegation-while-filtering-records-in-Power-Apps.png 1403w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/6Avoid-delegation-while-filtering-records-in-Power-Apps-300x147.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/6Avoid-delegation-while-filtering-records-in-Power-Apps-768x377.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/6Avoid-delegation-while-filtering-records-in-Power-Apps-1024x502.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/6Avoid-delegation-while-filtering-records-in-Power-Apps-660x324.png 660w\" sizes=\"(max-width: 1403px) 100vw, 1403px\" \/><\/p>\n<p><strong>6<\/strong>. Now just save and publish your app and now you will be able to filter records without delegation by just selecting the view accordingly.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-21552\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/7Avoid-delegation-while-filtering-records-in-Power-Apps.png\" alt=\"Avoid delegation while filtering records in Power Apps\" width=\"1434\" height=\"723\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/7Avoid-delegation-while-filtering-records-in-Power-Apps.png 1434w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/7Avoid-delegation-while-filtering-records-in-Power-Apps-300x151.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/7Avoid-delegation-while-filtering-records-in-Power-Apps-768x387.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/7Avoid-delegation-while-filtering-records-in-Power-Apps-1024x516.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/12\/7Avoid-delegation-while-filtering-records-in-Power-Apps-660x333.png 660w\" sizes=\"(max-width: 1434px) 100vw, 1434px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>In this way you can easily avoid the delegation warning which occurs during filtering a large set of dataset.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\"><a href=\"https:\/\/www.inogic.com\/product\/productivity-apps\/mailchimp-dynamics-365-crm-integration-marketing-4-dynamics\" target=\"_blank\" rel=\"noopener\">Marketing4Dynamics<\/a> \u2013 Mailchimp and Dynamics 365 CRM integration to plan effective sales strategies, increase sales and improve ROI<\/div><\/div><\/h2>\n<ul>\n<li>Sync Audiences, Members and Tags from Mailchimp to CRM<\/li>\n<li>Sync CRM Marketing List (Contacts\/Leads) to Mailchimp<\/li>\n<li>Sync Campaigns and Member activities from Mailchimp to CRM<\/li>\n<li>Monitor and analyze Mailchimp campaign statistics through Dashboards in CRM<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Delegation in Power Apps means process of retrieving data to the data source itself. This means Power Apps will retrieve small amount of data to make sure the performance is consistent. We often get delegation warning when we filter huge data source in Power Apps as shown in below screenshot. To avoid the delegation\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/12\/avoid-delegation-while-filtering-records-in-power-apps\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[16,18,19,44],"tags":[1931,1170],"class_list":["post-21551","post","type-post","status-publish","format-standard","hentry","category-dynamics-365","category-dynamics-365-v9-2","category-dynamics-crm","category-power-apps","tag-microsoft-power-platform","tag-microsoft-powerapps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/21551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=21551"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/21551\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=21551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=21551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=21551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}