<?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: Calculate SUM of allocation over a related table with dynamic year filter in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228487#M53136</link>
    <description>&lt;P&gt;The relationships are:&lt;/P&gt;&lt;P&gt;-tblProjects-tblTasks: 1 to many&lt;/P&gt;&lt;P&gt;-tblProjects-tblAllocation: 1 to many&lt;/P&gt;</description>
    <pubDate>Wed, 08 Dec 2021 19:04:40 GMT</pubDate>
    <dc:creator>ileana2019</dc:creator>
    <dc:date>2021-12-08T19:04:40Z</dc:date>
    <item>
      <title>Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228277#M53130</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having troubles calculating the sum of Allocation from a related table, based on the year filter selection.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following SharePoint lists (I used Excel to simplify):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;tblAllocation&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Start_Date&lt;/TD&gt;&lt;TD&gt;End_Date&lt;/TD&gt;&lt;TD&gt;Year_A&lt;/TD&gt;&lt;TD&gt;Allocation_in_Days&lt;/TD&gt;&lt;TD&gt;Employee&lt;/TD&gt;&lt;TD&gt;Project&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-01-21&lt;/TD&gt;&lt;TD&gt;31-12-21&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;40&lt;/TD&gt;&lt;TD&gt;Anna&lt;/TD&gt;&lt;TD&gt;Project 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-01-21&lt;/TD&gt;&lt;TD&gt;31-12-21&lt;/TD&gt;&lt;TD&gt;2021&lt;/TD&gt;&lt;TD&gt;135&lt;/TD&gt;&lt;TD&gt;Linda&lt;/TD&gt;&lt;TD&gt;Project 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-01-22&lt;/TD&gt;&lt;TD&gt;31-12-22&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;60&lt;/TD&gt;&lt;TD&gt;Anna&lt;/TD&gt;&lt;TD&gt;Project 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-01-22&lt;/TD&gt;&lt;TD&gt;31-12-22&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;95&lt;/TD&gt;&lt;TD&gt;Linda&lt;/TD&gt;&lt;TD&gt;Project 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;01-01-22&lt;/TD&gt;&lt;TD&gt;31-12-22&lt;/TD&gt;&lt;TD&gt;2022&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;Hans&lt;/TD&gt;&lt;TD&gt;Project 1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&l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gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would like is to display in a Power BI table the following:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Title (tblProjects)&lt;/TD&gt;&lt;TD&gt;Start Date (tblProject)&lt;/TD&gt;&lt;TD&gt;End Date (tblProjects)&lt;/TD&gt;&lt;TD&gt;Cost In Days (tblTasks)&lt;/TD&gt;&lt;TD&gt;Allocation_in_Days (tblAllocation)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Project 1&lt;/TD&gt;&lt;TD&gt;19-10-20&lt;/TD&gt;&lt;TD&gt;30-12-22&lt;/TD&gt;&lt;TD&gt;230&lt;/TD&gt;&lt;TD&gt;345&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The relationships are:&lt;/P&gt;&lt;P&gt;-tblProjects-tblTasks: 1 to many&lt;/P&gt;&lt;P&gt;-tblProjects-tblAllocation: 1 to many&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And have a filter for the tblTasks Start Date year:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Whenever I select a year, the Allocation_in_Days should be calculated accordingly (example: if I select year 2021, the Allocation_in_days should be 175). That is now not the case; How can I do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:05:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228277#M53130</guid>
      <dc:creator>ileana2019</dc:creator>
      <dc:date>2021-12-08T19:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228440#M53134</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326264" data-lia-user-login="ileana2019" class="lia-mention lia-mention-user"&gt;ileana2019&lt;/a&gt;&amp;nbsp; how all these tables are connected?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 18:02:30 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228440#M53134</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-12-08T18:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228487#M53136</link>
      <description>&lt;P&gt;The relationships are:&lt;/P&gt;&lt;P&gt;-tblProjects-tblTasks: 1 to many&lt;/P&gt;&lt;P&gt;-tblProjects-tblAllocation: 1 to many&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:04:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228487#M53136</guid>
      <dc:creator>ileana2019</dc:creator>
      <dc:date>2021-12-08T19:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228490#M53137</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326264" data-lia-user-login="ileana2019" class="lia-mention lia-mention-user"&gt;ileana2019&lt;/a&gt;&amp;nbsp; a measure with SUM should give you what you need&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:07:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228490#M53137</guid>
      <dc:creator>smpa01</dc:creator>
      <dc:date>2021-12-08T19:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228493#M53138</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="24978" data-lia-user-login="smpa01" class="lia-mention lia-mention-user"&gt;smpa01&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Indeed the sum works to have the total for all years (inside tblAllocation); I also created a measure:&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;SUMX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;RELATEDTABLE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;tblAllocation&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;tblAllocation[Allocation_in_Days]&lt;/SPAN&gt;&lt;SPAN&gt;)) that gives the same result; However, when I filter(=slicer) on the Year (of the tbTasks StartDate) then the sum is still the total sum. It should be the sum only for that specific year (inside tblAllocation).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:12:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228493#M53138</guid>
      <dc:creator>ileana2019</dc:creator>
      <dc:date>2021-12-08T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228549#M53140</link>
      <description>&lt;P&gt;Hi Ileana.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A dimension should be created for project and year (concatenated).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please review the attached PBI &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1nQA-eDHIet1AbcIJW8IlxiZ3lOorSB4A/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1nQA-eDHIet1AbcIJW8IlxiZ3lOorSB4A/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;(download)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Dec 2021 19:36:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2228549#M53140</guid>
      <dc:creator>David-Ganor</dc:creator>
      <dc:date>2021-12-08T19:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2230153#M53193</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344223" data-lia-user-login="David-Ganor" class="lia-mention lia-mention-user"&gt;David-Ganor&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you for the file! How do I create the Dim Project_Year table? Is that a left outer join between tblAllocation and tblProjects? From where is the Year column inside table Dim Project_Year coming from? From tblAllocation or tblTasks? It should come from tblTasks (since the filter needs to filter for the tasks that start in a certain year). Is there another way than creating the intermediate table (like with using CALCULATE, FILTER, RELATEDTABLE etc)?&lt;/P&gt;&lt;P&gt;Thank you for your help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 11:23:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2230153#M53193</guid>
      <dc:creator>ileana2019</dc:creator>
      <dc:date>2021-12-09T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2230923#M53218</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="326264" data-lia-user-login="ileana2019" class="lia-mention lia-mention-user"&gt;ileana2019&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The logical reason for creating it as a Dimension - is somewhat a "business" logic.&lt;/P&gt;&lt;P&gt;Every project has tasks and employees that can contribute to this project&lt;/P&gt;&lt;P&gt;Every task (within project)- should be done in a certain year - and has its cost&lt;/P&gt;&lt;P&gt;Every employee can contribute a certain number of days for a certain project in a certain year.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt; --&amp;gt; Task --&amp;gt; &lt;STRONG&gt;Year&lt;/STRONG&gt; &amp;amp; Cost&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Project&lt;/STRONG&gt; --&amp;gt;Employee --&amp;gt; &lt;STRONG&gt;Year&lt;/STRONG&gt; &amp;amp; Contribution.&lt;/P&gt;&lt;P&gt;Therefore the Project_Year_Key is a Shared dimension for the "Cost" (tblTasks) and the "Contribution" (tblAllocation).&lt;/P&gt;&lt;P&gt;It should filter both. And performance wise - it should be more efficient than trying to "manipulate" it inside a measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the creation of this dimension, I've got a few options/suggestions:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&amp;nbsp;creating "Year" table (kind of dimDate table) and Cartesian join it with tblProject - this way you generate all possible options&lt;/LI&gt;&lt;LI&gt;Distinct - of Year &amp;amp; Project from tblTask (can be done as a calculated table OR in the Power Query)&lt;/LI&gt;&lt;LI&gt;Use option no. 2 BUT Union with Year &amp;amp; Project from the tblAllocation (remove duplicates after Union) -- for a case where there can be an employee which has the capability to contribute but there are no relevant tasks for him to participate in.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;If you need further assistance with creating that Dimension - please reply.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 17:16:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2230923#M53218</guid>
      <dc:creator>David-Ganor</dc:creator>
      <dc:date>2021-12-09T17:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate SUM of allocation over a related table with dynamic year filter</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2231176#M53239</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="344223" data-lia-user-login="David-Ganor" class="lia-mention lia-mention-user"&gt;David-Ganor&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;After your first reply, I spent some time today to read more about the star schema modeling, fact tables and dimensions tables. I also created the dimension table using a query: selectcolumns where I selected the year and project from tblAllocation (but now that I read your post, it should have been from tblTasks), then I added the key projectyear(by concatenating the 2 columns), then i removed the duplicates. Anyhow, your solution totally worked! Thank you so much! It made me also rethink my entire data modeling, where I was using a lot of different relationships between the tables and a lot of calculations (like lookups, related etc.). I will now try to implement the star schema, I guess a new question post will follow soon. I ll mark your response as solution. Thank you again for taking the time to help with this!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 21:15:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Calculate-SUM-of-allocation-over-a-related-table-with-dynamic/m-p/2231176#M53239</guid>
      <dc:creator>ileana2019</dc:creator>
      <dc:date>2021-12-09T21:15:07Z</dc:date>
    </item>
  </channel>
</rss>

