<?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: Help! Anyone have a DAX solution for summing values based on dates in a different table? in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Anyone-have-a-DAX-solution-for-summing-values-based-on/m-p/2754465#M85095</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307993" data-lia-user-login="arpost" class="lia-mention lia-mention-user"&gt;arpost&lt;/a&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;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _s =
    SUMMARIZE (
        'DateSummary',
        [AcountKey],
        [StartDate],
        [EndDate],
        "amount",
            CALCULATE (
                SUM ( OrderSummary[Amount] ),
                FILTER (
                    OrderSummary,
                    [AccountKey] = DateSummary[AcountKey]
                        &amp;amp;&amp;amp; [TransactionDate] &amp;gt;= [StartDate]
                        &amp;amp;&amp;amp; IF ( ISBLANK ( [EndDate] ), TRUE (), [TransactionDate] &amp;lt;= [EndDate] )
                )
            )
    )
RETURN
    SUMX (
        _s,
        [amount]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Pbix in the end you can refer.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 08 Sep 2022 06:53:32 GMT</pubDate>
    <dc:creator>v-chenwuz-msft</dc:creator>
    <dc:date>2022-09-08T06:53:32Z</dc:date>
    <item>
      <title>Help! Anyone have a DAX solution for summing values based on dates in a different table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Anyone-have-a-DAX-solution-for-summing-values-based-on/m-p/2753442#M85008</link>
      <description>&lt;P&gt;Greetings, community! Hope someone can help me figure out this DAX scenario. I've tried just about everything of which I can think (SUMX, Calculate, SelectedValue, etc.), and can't figure out a solution. It seems like this should be simple, but it is driving me crazy! Let me set the stage with a "simplified" example.&lt;/P&gt;&lt;H1&gt;&lt;STRONG&gt;Scenario&lt;/STRONG&gt;&lt;/H1&gt;&lt;P&gt;I have a matrix with a date from one table and need to show the total $ in that window of time in another table.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Here's the sample data from the three tables:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And here is the data model:&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H1&gt;&lt;STRONG&gt;Desired Result&lt;/STRONG&gt;&lt;/H1&gt;&lt;P&gt;What I'm hoping to achieve is that, when I single-select slice to a specific category, the matrix will show the total $ that was paid based on each account's Start/End Date range. So, based on the data, New Accounts that had a &lt;STRONG&gt;StartDate&lt;/STRONG&gt; in&amp;nbsp;&lt;STRONG&gt;June&lt;/STRONG&gt; would show &lt;STRONG&gt;$3000&lt;/STRONG&gt; for &lt;STRONG&gt;New Accounts&lt;/STRONG&gt;.&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;When sliced to &lt;STRONG&gt;Returning Accounts&lt;/STRONG&gt;, it would show June with &lt;STRONG&gt;$600 (All Payments for Account #1 &amp;gt;= StartDate 6/21)&amp;nbsp;&lt;/STRONG&gt;and &lt;STRONG&gt;August&lt;/STRONG&gt; with &lt;STRONG&gt;-$1500&lt;/STRONG&gt;.&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;Does anyone have a brilliant idea or suggestion?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 15:00:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Anyone-have-a-DAX-solution-for-summing-values-based-on/m-p/2753442#M85008</guid>
      <dc:creator>arpost</dc:creator>
      <dc:date>2022-09-07T15:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Help! Anyone have a DAX solution for summing values based on dates in a different table?</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Anyone-have-a-DAX-solution-for-summing-values-based-on/m-p/2754465#M85095</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="307993" data-lia-user-login="arpost" class="lia-mention lia-mention-user"&gt;arpost&lt;/a&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;
&lt;P&gt;Measure:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure =
VAR _s =
    SUMMARIZE (
        'DateSummary',
        [AcountKey],
        [StartDate],
        [EndDate],
        "amount",
            CALCULATE (
                SUM ( OrderSummary[Amount] ),
                FILTER (
                    OrderSummary,
                    [AccountKey] = DateSummary[AcountKey]
                        &amp;amp;&amp;amp; [TransactionDate] &amp;gt;= [StartDate]
                        &amp;amp;&amp;amp; IF ( ISBLANK ( [EndDate] ), TRUE (), [TransactionDate] &amp;lt;= [EndDate] )
                )
            )
    )
RETURN
    SUMX (
        _s,
        [amount]
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Pbix in the end you can refer.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;
&lt;P&gt;Community Support Team _ chenwu zhu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 06:53:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Help-Anyone-have-a-DAX-solution-for-summing-values-based-on/m-p/2754465#M85095</guid>
      <dc:creator>v-chenwuz-msft</dc:creator>
      <dc:date>2022-09-08T06:53:32Z</dc:date>
    </item>
  </channel>
</rss>

