{"id":36005,"date":"2023-09-14T15:07:55","date_gmt":"2023-09-14T09:37:55","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=36005"},"modified":"2023-09-14T15:07:55","modified_gmt":"2023-09-14T09:37:55","slug":"how-to-filter-activities-by-selected-users-in-power-bi-reports","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2023\/09\/how-to-filter-activities-by-selected-users-in-power-bi-reports\/","title":{"rendered":"How To Filter Activities by Selected Users in Power BI Reports?"},"content":{"rendered":"<p>Power BI is a powerful tool for visualizing and analyzing data in graphical or chart formats. It is widely used to create interactive dashboards and reports from various data sources.<\/p>\n<p>In this blog post, we will explore how to create a <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-bi-data-visualisation\/\" target=\"_blank\" rel=\"noopener\">Power BI<\/a> report that filters activities based on selected users. This means that only activities owned by the chosen users will be displayed in the report.<\/p>\n<p>To achieve this, we will need to handle some relationships between tables due to the complex structure of activity data in CRM.<\/p>\n<p><strong>Here are the steps to accomplish this requirement using Power BI:<\/strong><\/p>\n<p><strong>Step 1:<\/strong> Begin by connecting Power BI Desktop to Microsoft Dataverse. To do this, navigate to Power BI Desktop and look for the &#8216;Get Data&#8217; option. Expand &#8216;Get Data&#8217; and click on &#8216;Dataverse&#8217;.<\/p>\n<p>Please refer to the screenshot given below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36006\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/1Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"1035\" height=\"587\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/1Power-BI-Report.jpeg 1035w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/1Power-BI-Report-300x170.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/1Power-BI-Report-1024x581.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/1Power-BI-Report-768x436.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/1Power-BI-Report-660x374.jpeg 660w\" sizes=\"(max-width: 1035px) 100vw, 1035px\" \/><\/p>\n<p>You will be prompted to log in with your user credentials to establish the connection to Dataverse.<\/p>\n<p><strong>Step 2: <\/strong>After the connection is established, select the necessary data from Dataverse. When you click on &#8216;Dataverse&#8217;, you will see an environment selector pop-up window. Choose your environment from the options provided.<\/p>\n<p>Please refer to the screenshot given below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36016\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/2Power-BI-Report.jpeg\" alt=\"\" width=\"1009\" height=\"474\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/2Power-BI-Report.jpeg 1009w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/2Power-BI-Report-300x141.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/2Power-BI-Report-768x361.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/2Power-BI-Report-660x310.jpeg 660w\" sizes=\"(max-width: 1009px) 100vw, 1009px\" \/><\/p>\n<p><strong>Step 3: <\/strong>Now, select the required tables as indicated in the screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36015\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/3Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"884\" height=\"654\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/3Power-BI-Report.jpeg 884w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/3Power-BI-Report-300x222.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/3Power-BI-Report-768x568.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/3Power-BI-Report-660x488.jpeg 660w\" sizes=\"(max-width: 884px) 100vw, 884px\" \/><\/p>\n<p>After selecting the tables from the from appropriate environment, you can either load the data directly or choose to transform it.<\/p>\n<p><a href=\"https:\/\/www.inogic.com\/services\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone size-full wp-image-36017\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/Power-BI.gif\" alt=\"Power BI\" width=\"700\" height=\"200\" \/><\/a><\/p>\n<p>If you wish to include only specific columns from the table and avoid unnecessary data, use the <strong>&#8216;Transform Data&#8217;<\/strong> option. This will open the Power BI Query Editor, where you can specify the columns needed for your Power BI report.<\/p>\n<p>In this scenario, we require data from the <strong>&#8216;systemuser&#8217;<\/strong> and <strong>&#8216;activitypointer&#8217;<\/strong> entities.<\/p>\n<p>As to have only required data in report and not to load the report with unnecessary data, we can use \u201c<strong>Choose Columns<\/strong>\u201d option to select only required columns from the table.<\/p>\n<p>Please refer to the screenshot given below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36014\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/4Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"1222\" height=\"510\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/4Power-BI-Report.jpeg 1222w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/4Power-BI-Report-300x125.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/4Power-BI-Report-1024x427.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/4Power-BI-Report-768x321.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/4Power-BI-Report-660x275.jpeg 660w\" sizes=\"(max-width: 1222px) 100vw, 1222px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36013\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/5Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"645\" height=\"648\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/5Power-BI-Report.jpeg 645w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/5Power-BI-Report-300x300.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/5Power-BI-Report-150x150.jpeg 150w\" sizes=\"(max-width: 645px) 100vw, 645px\" \/><\/p>\n<p><strong>Step 4<\/strong>: Click the <strong>&#8216;Close &amp; Apply&#8217;<\/strong> button to update the changes in the tables. You will now see all the table columns in the sitemap.<\/p>\n<p>As shown in the screenshot below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36012\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/6Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"667\" height=\"384\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/6Power-BI-Report.jpeg 667w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/6Power-BI-Report-300x173.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/6Power-BI-Report-660x380.jpeg 660w\" sizes=\"(max-width: 667px) 100vw, 667px\" \/><\/p>\n<p>You will be able to see all the Table columns in the sitemap. Select <strong>Table<\/strong> from <strong>Visualization, <\/strong>then select the columns<strong> Activity type, Subject <\/strong>from<strong> Activitypointer <\/strong>table<strong>.<\/strong><\/p>\n<p>As shown in screenshot here:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36011\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/7Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"1424\" height=\"455\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/7Power-BI-Report.jpeg 1424w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/7Power-BI-Report-300x96.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/7Power-BI-Report-1024x327.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/7Power-BI-Report-768x245.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/7Power-BI-Report-660x211.jpeg 660w\" sizes=\"(max-width: 1424px) 100vw, 1424px\" \/><\/p>\n<p><strong>Step 5<\/strong>: To create a meaningful report, we need to add a slicer visual control to filter the data based on user selection. Select the <strong>&#8216;Full name&#8217;<\/strong> column from the <strong>&#8216;User&#8217; <\/strong>table.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36010\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/8Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"1427\" height=\"441\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/8Power-BI-Report.jpeg 1427w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/8Power-BI-Report-300x93.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/8Power-BI-Report-1024x316.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/8Power-BI-Report-768x237.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/8Power-BI-Report-660x204.jpeg 660w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/p>\n<p><strong>Step 6<\/strong>: To reflect the slicer&#8217;s selection within the table, we must establish a relationship between the &#8216;Users&#8217; and &#8216;Activity&#8217; tables.<\/p>\n<p>Navigate to the <strong>Modeling<\/strong> tab and look for <strong>&#8216;Manage Relationships&#8217;<\/strong>.<\/p>\n<p>Click <strong>&#8216;New&#8217;<\/strong> to create a relationship. Select <strong>&#8216;Ownerid&#8217;<\/strong> from the <strong>&#8216;activitypointer&#8217;<\/strong> table and <strong>&#8216;systemuserid&#8217;<\/strong> from the <strong>&#8216;User&#8217;<\/strong> table to establish the relationship.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36009\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/9Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"1072\" height=\"701\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/9Power-BI-Report.jpeg 1072w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/9Power-BI-Report-300x196.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/9Power-BI-Report-1024x670.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/9Power-BI-Report-768x502.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/9Power-BI-Report-660x432.jpeg 660w\" sizes=\"(max-width: 1072px) 100vw, 1072px\" \/><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36008\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/10Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"751\" height=\"636\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/10Power-BI-Report.jpeg 751w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/10Power-BI-Report-300x254.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/10Power-BI-Report-660x559.jpeg 660w\" sizes=\"(max-width: 751px) 100vw, 751px\" \/><\/p>\n<p><strong>Step 7<\/strong>: Finally, we will be able to filter <strong>Activity<\/strong> by <strong>Users<\/strong> as shown in the below screenshot.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36007\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/11Power-BI-Report.jpeg\" alt=\"Power BI Report\" width=\"737\" height=\"341\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/11Power-BI-Report.jpeg 737w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/11Power-BI-Report-300x139.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/09\/11Power-BI-Report-660x305.jpeg 660w\" sizes=\"(max-width: 737px) 100vw, 737px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>By following these steps, you can create a Power BI report that displays activities filtered based on selected users. This is a valuable way to present data for various business scenarios within Dynamics 365 CRM.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Power BI is a powerful tool for visualizing and analyzing data in graphical or chart formats. It is widely used to create interactive dashboards and reports from various data sources. In this blog post, we will explore how to create a Power BI report that filters activities based on selected users. This means that only\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2023\/09\/how-to-filter-activities-by-selected-users-in-power-bi-reports\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"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":[45],"tags":[1339],"class_list":["post-36005","post","type-post","status-publish","format-standard","hentry","category-power-bi","tag-power-bi"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/36005","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=36005"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/36005\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=36005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=36005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=36005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}