<?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 SUMIFs in DAX to add a factor of another row to the current row in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1040352#M13929</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a DAX formula to build a measure in Power Pivot to replicate what I am doing in a table formula right now in Excel. Goal is increase speed, the data set is quite massive and the table formula is very slow. I have a data set where there is a parent producer and 0-2 children producers that I would like to combine production from. I want to add half of each adjacent child producer to the parent producer volume. So, no adjacent children, parent production remains the same; 1 child, parent production + 0.5*child production; 2 children, parent production + 0.5*child_1 production + 0.5*child_2 production. I made a table to define how many children a parent has, 0 means none, 1 means a child with the same number as the parent, -1 means a child number less than the parent and 2 means there is a child on either side. For example, assume the following producer arrangement: P1, P1C, P2, P2C, P3, P4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table name: ParCh&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Parent&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Child&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset looks like this, each producer gets one line per day. In actuality&amp;nbsp;there are multiple columns that would all need to be combined in this fashion, but they are all the same idea, so this is representative&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Daytime&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Producer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Production&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;80&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following cell formula I am able to get my desired result. Note the IF statements for D1 are teh only case where the parent prefix does not match the child prefix.&lt;/P&gt;&lt;P&gt;=IFERROR(IF(INDEX(ParCh,MATCH([@Producer],ParCh[Parent],0),2)=2,[PRODUCTION]+0.5*(SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],"=" &amp;amp;[@Producer] &amp;amp; "C")+SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],IF([@Producer]="D1","=C0C","=" &amp;amp; LEFT([@Producer],1) &amp;amp; MID([@Producer],2,1)-1 &amp;amp; "C"))),IF(INDEX(ParCh,MATCH([@Producer],ParCh[Parent],0),2)=1,[PRODUCTION]+0.5*SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],"=" &amp;amp;[@Producer] &amp;amp; "C"),[PRODUCTION]+0.5*SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],IF([@Producer]="D1","=C0C","=" &amp;amp; LEFT([@Producer],1) &amp;amp; MID([@Producer],2,1)-1 &amp;amp; "C")))),IF(RIGHT([@Producer],2)="C","",[PRODUCTION]))&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Daytime&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Producer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Production&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Parent + 0.5Child&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;190&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;80&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;240&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is quite a cumbersome formula to run on a large dataset, and is taking way too long to execute for it to be of use. I have found that measures execute much fast I am just unsure how to get this result using a DAX formula. I have tried using the Calculate function to filter data, but I am unable to make a reference to the producer designation to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is possible in DAX, but if anyone has any tips or solutions, they would be greatly appreciated.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2020 22:12:56 GMT</pubDate>
    <dc:creator>mecefink</dc:creator>
    <dc:date>2020-04-21T22:12:56Z</dc:date>
    <item>
      <title>SUMIFs in DAX to add a factor of another row to the current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1040352#M13929</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build a DAX formula to build a measure in Power Pivot to replicate what I am doing in a table formula right now in Excel. Goal is increase speed, the data set is quite massive and the table formula is very slow. I have a data set where there is a parent producer and 0-2 children producers that I would like to combine production from. I want to add half of each adjacent child producer to the parent producer volume. So, no adjacent children, parent production remains the same; 1 child, parent production + 0.5*child production; 2 children, parent production + 0.5*child_1 production + 0.5*child_2 production. I made a table to define how many children a parent has, 0 means none, 1 means a child with the same number as the parent, -1 means a child number less than the parent and 2 means there is a child on either side. For example, assume the following producer arrangement: P1, P1C, P2, P2C, P3, P4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table name: ParCh&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Parent&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Child&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;2&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-1&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;P4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;0&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset looks like this, each producer gets one line per day. In actuality&amp;nbsp;there are multiple columns that would all need to be combined in this fashion, but they are all the same idea, so this is representative&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Daytime&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Producer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Production&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;80&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the following cell formula I am able to get my desired result. Note the IF statements for D1 are teh only case where the parent prefix does not match the child prefix.&lt;/P&gt;&lt;P&gt;=IFERROR(IF(INDEX(ParCh,MATCH([@Producer],ParCh[Parent],0),2)=2,[PRODUCTION]+0.5*(SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],"=" &amp;amp;[@Producer] &amp;amp; "C")+SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],IF([@Producer]="D1","=C0C","=" &amp;amp; LEFT([@Producer],1) &amp;amp; MID([@Producer],2,1)-1 &amp;amp; "C"))),IF(INDEX(ParCh,MATCH([@Producer],ParCh[Parent],0),2)=1,[PRODUCTION]+0.5*SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],"=" &amp;amp;[@Producer] &amp;amp; "C"),[PRODUCTION]+0.5*SUMIFS([PRODUCTION],[DAYTIME],"=" &amp;amp;[@DAYTIME],[Producer],IF([@Producer]="D1","=C0C","=" &amp;amp; LEFT([@Producer],1) &amp;amp; MID([@Producer],2,1)-1 &amp;amp; "C")))),IF(RIGHT([@Producer],2)="C","",[PRODUCTION]))&lt;/P&gt;&lt;DIV&gt;&lt;TABLE border="1" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Daytime&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Producer&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Production&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Parent + 0.5Child&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;100&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P1C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;50&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;125&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;190&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P2C&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;80&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P3&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;200&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;240&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;2020/04/01&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;P4&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;175&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is quite a cumbersome formula to run on a large dataset, and is taking way too long to execute for it to be of use. I have found that measures execute much fast I am just unsure how to get this result using a DAX formula. I have tried using the Calculate function to filter data, but I am unable to make a reference to the producer designation to do so.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure if this is possible in DAX, but if anyone has any tips or solutions, they would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 22:12:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1040352#M13929</guid>
      <dc:creator>mecefink</dc:creator>
      <dc:date>2020-04-21T22:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFs in DAX to add a factor of another row to the current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1047747#M14209</link>
      <description>&lt;P&gt;I would start by changing the ParCh table to something like this&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 96pt;" border="0" width="128" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD width="64" height="20" style="height: 15.0pt; width: 48pt;"&gt;Parent&lt;/TD&gt;
&lt;TD width="64" style="width: 48pt;"&gt;Child&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;P1&lt;/TD&gt;
&lt;TD&gt;P1C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;P2&lt;/TD&gt;
&lt;TD&gt;P1C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;P2&lt;/TD&gt;
&lt;TD&gt;P2C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;P3&lt;/TD&gt;
&lt;TD&gt;P2C&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 15.0pt;"&gt;
&lt;TD height="20" style="height: 15.0pt;"&gt;P4&lt;/TD&gt;
&lt;TD&gt;NA&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;it's basically the same information, but is much easier to work with with DAX, as you can pass filters using whole columns&lt;BR /&gt;Tables shouldn't have any joins for this to work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Column =
VAR __Date = Data[Daytime]
VAR __Producer = Data[Producer]
VAR __IsParent =
    __Producer IN VALUES ( ParCh[Parent] )
VAR __Children =
    FILTER ( ParCh, 'ParCh'[Parent] = __Producer )
VAR __ChildrenProduction =
    CALCULATE (
        SUM ( Data[Production] ),
        ALL ( Data ),
        TREATAS ( SELECTCOLUMNS ( __Children, "Children", [Child] ), Data[Producer] ),
        Data[Daytime] = __Date
    )
RETURN
    IF ( __IsParent, 'Data'[Production] + __ChildrenProduction * 0.5 )
&lt;/LI-CODE&gt;
&lt;P&gt;the result:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 19:23:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1047747#M14209</guid>
      <dc:creator>Stachu</dc:creator>
      <dc:date>2020-04-24T19:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUMIFs in DAX to add a factor of another row to the current row</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1061591#M14792</link>
      <description>&lt;P&gt;That worked thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was also able to get it working another way. I used the table for ParCh that you recommended and then made a new "Parent" column on my table that used lookup(Match) to assign the parent well. Then I made another "Parent + 0.5Child" column that multiplied all child producers by 0.5 and parents by 1. I then made a key for the parent producer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pulling "Parent + 0.5Child" into a pivot table with the Parent Key, I got the desired end result. Much fast cell formula than my original, but definitely not as elegant as your solution. My less elegant solution is a bit more intuitive for the other/future users to decipher though... so now to choose between elegance and job security or ease of access.&lt;/P&gt;</description>
      <pubDate>Fri, 01 May 2020 20:52:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/SUMIFs-in-DAX-to-add-a-factor-of-another-row-to-the-current-row/m-p/1061591#M14792</guid>
      <dc:creator>mecefink</dc:creator>
      <dc:date>2020-05-01T20:52:54Z</dc:date>
    </item>
  </channel>
</rss>

